1 #ifndef __EXCEPTION_H__
2 #define __EXCEPTION_H__
12 Exception(std::string szErrorMessage);
13 const char* GetErrorMessage();
18 class DatabaseException : public Exception
21 unsigned int nErrorCode;
24 DatabaseException(std::string szError, unsigned int nErrorNum) : Exception(szError) { nErrorCode = nErrorNum; };
25 unsigned int getErrorCode() { return nErrorCode; }