X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.hh;h=37f18d3dd783dc30226bd316271db21d15f97bd0;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=67435ba5f403b2f9c538db65dcc9390f7eb0eba4;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Utils/Exception.hh b/Utils/Exception.hh index 67435ba..37f18d3 100644 --- a/Utils/Exception.hh +++ b/Utils/Exception.hh @@ -37,7 +37,7 @@ namespace senf { /** \brief Exception handling standard UNIX errors (errno) - This exception is thrown to signal generic errno failuers. + This exception is thrown to signal generic errno failures. \todo make where and err accessors and make the member vars private @@ -49,14 +49,14 @@ namespace senf { string and errno value as an argument and will throw a corresponding template class instance. This would just be a big switch statement containing all possible errno values, - probably created using some makro metaprogramming. + probably created using some macro metaprogramming. */ class SystemException : public std::exception { public: explicit SystemException(int err); ///< SystemException without error lokus info - /**< \param[in] err errror number (the errno value) */ - SystemException(char const * where, int err); ///< SystemException with error lokus info + /**< \param[in] err error number (the errno value) */ + SystemException(char const * where, int err); ///< SystemException with error location info /**< \param[in] where description of error origin \param[in] err error number (the errno value) */ @@ -71,6 +71,8 @@ namespace senf { std::string buffer_; }; + enum NoThrow_t { nothrow }; + } ///////////////////////////////hh.e//////////////////////////////////////// @@ -86,4 +88,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: