2024-03-08 08:19:15 +00:00
|
|
|
#pragma once
|
2024-04-08 22:07:57 +00:00
|
|
|
///@file
|
2024-03-08 08:19:15 +00:00
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Exit the program with a given exit code.
|
|
|
|
*/
|
|
|
|
class Exit : public std::exception
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int status;
|
|
|
|
Exit() : status(0) { }
|
|
|
|
explicit Exit(int status) : status(status) { }
|
|
|
|
virtual ~Exit();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|