fastcgi++
exception.hpp
Go to the documentation of this file.
00001 #include <exception>
00002 
00003 namespace ASql
00004 {
00006    struct Error: public std::exception
00007    {
00009       int erno;
00010 
00012       const char* msg;
00013 
00018       Error(const char* msg_, const int erno_): erno(erno_), msg(msg_) {}
00019       Error(): erno(0), msg(0) {}
00020       const char* what() const throw() { return msg; }
00021 
00022       Error(const Error& e): erno(e.erno), msg(e.msg)  {}
00023    };
00024 }