--- smsdaemon/Exceptions.h 2008/12/07 00:59:05 132 +++ smsdaemon/Exceptions.h 2008/12/17 23:43:26 193 @@ -1,8 +1,27 @@ +#ifndef __EXCEPTIONS_H__ +#define __EXCEPTIONS_H__ + #include -class filenotfoundexception : std::runtime_error +class filenotfoundexception : public std::runtime_error { public: filenotfoundexception() : runtime_error("") {} }; + + +class smsnotfoundexception : public std::runtime_error +{ +public: + smsnotfoundexception() : runtime_error("") {} +}; + +class httpexception : public std::runtime_error +{ +public: + httpexception(const char* msg) : runtime_error(msg) {} +}; + + +#endif //__EXCEPTIONS_H__