lix-releng-staging/src/libutil/exit.hh

20 lines
280 B
C++

#pragma once
///@file
#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();
};
}