X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.hh;h=1c5ca1ca7dede6088e95f1d870acb4d515ff5d05;hb=b2d64a4084a053f0887c7845bb81074e0cd3a855;hp=6c3e8b13ec260fdf53736d7f3b9ab242587e0724;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Utils/Exception.hh b/Utils/Exception.hh index 6c3e8b1..1c5ca1c 100644 --- a/Utils/Exception.hh +++ b/Utils/Exception.hh @@ -25,6 +25,7 @@ // Custom includes #include +#include //#include "Exception.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -34,9 +35,18 @@ namespace lib { struct SystemException : public std::exception { - SystemException(int err_) : err(err_) {}; + explicit SystemException(int err_) : where(0), err(err_) { init(); } + SystemException(char const * where_, int err_) : where(where_), err(err_) { init(); } + virtual char const * what() const throw(); + + char const * where; int err; + + virtual ~SystemException() throw() {} + private: + void init(); + std::string buffer_; }; }}