Files
lix/lix/libutil/exit.hh
T
eldritch horrors 63d550938b treewide: derive all lix exceptions from BaseError
even the non-errors. we should probably insert a BaseException here.

Change-Id: I1b1af8ba0bf49251fe9d1a24c6559db3ef4a59d2
2025-04-06 11:52:32 +02:00

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) { }
};
}