diff options
Diffstat (limited to 'src/libutil/types.hh')
-rw-r--r-- | src/libutil/types.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh index fd50de00cce5..f110188da151 100644 --- a/src/libutil/types.hh +++ b/src/libutil/types.hh @@ -24,12 +24,14 @@ using boost::format; class BaseError : public std::exception { protected: + string prefix_; // used for location traces etc. string err; public: BaseError(const format & f); ~BaseError() throw () { }; const char * what() const throw () { return err.c_str(); } const string & msg() const throw () { return err; } + const string & prefix() const throw () { return prefix_; } BaseError & addPrefix(const format & f); }; |