diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27T14·56+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27T14·56+0000 |
commit | 40b5936691fe2448dea0080e2319cc340bc7c65c (patch) | |
tree | 66144e3af56bc1d7035134b85f5e00641ab305e0 /src/util.hh | |
parent | 3da9687854e029e9df3b612fd592d2d5a622bb20 (diff) |
* Realisation of Derive(...) expressions.
Diffstat (limited to 'src/util.hh')
-rw-r--r-- | src/util.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/util.hh b/src/util.hh index 3efac928b54e..cf6f7d0c1c65 100644 --- a/src/util.hh +++ b/src/util.hh @@ -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) { }; }; |