even the non-errors. we should probably insert a BaseException here. Change-Id: I1b1af8ba0bf49251fe9d1a24c6559db3ef4a59d2
20 lines
269 B
C++
20 lines
269 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "lix/libutil/error.hh"
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* Exit the program with a given exit code.
|
|
*/
|
|
class Exit : public BaseException
|
|
{
|
|
public:
|
|
int status;
|
|
Exit() : status(0) { }
|
|
explicit Exit(int status) : status(status) { }
|
|
};
|
|
|
|
}
|