mirror of
https://github.com/NixOS/nix
synced 2025-07-05 16:31:47 +02:00
* Realisation of Derive(...) expressions.
This commit is contained in:
parent
3da9687854
commit
40b5936691
7 changed files with 193 additions and 165 deletions
|
@ -18,22 +18,21 @@ class Error : public exception
|
|||
protected:
|
||||
string err;
|
||||
public:
|
||||
Error() { }
|
||||
Error(format f) { err = f.str(); }
|
||||
~Error() throw () { }
|
||||
Error(const format & f);
|
||||
~Error() throw () { };
|
||||
const char * what() const throw () { return err.c_str(); }
|
||||
};
|
||||
|
||||
class SysError : public Error
|
||||
{
|
||||
public:
|
||||
SysError(string msg);
|
||||
SysError(const format & f);
|
||||
};
|
||||
|
||||
class UsageError : public Error
|
||||
{
|
||||
public:
|
||||
UsageError(string _err) : Error(_err) { };
|
||||
UsageError(const format & f) : Error(f) { };
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue