00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef RESOURCEPOOL_ORACLE_ORACLEEXCEPTION_HH
00025 #define RESOURCEPOOL_ORACLE_ORACLEEXCEPTION_HH
00026
00027 #ifndef INCLUDED_EXCEPTIONS_HH
00028 #include "Exceptions/Exception.hh"
00029 #endif
00030
00031 #ifndef RESOURCEPOOL_SQL_SQLException_HH
00032 #include "ResourcePool/SQL/SQLException.hh"
00033 #endif
00034
00035 #ifndef RESOURCEPOOL_NOFAILOVEREXCEPTION_HH
00036 #include "ResourcePool/NoFailoverException.hh"
00037 #endif
00038
00039 namespace fatalmind {
00040
00041 class OracleExceptionFactory;
00042
00043 class OracleException: virtual public SQL::SQLException {
00044 public:
00045 OracleException(const OracleException&);
00046 OracleException(const std::string& message, const int errorcode, const std::string& sqlstm);
00047 int getErrorCode() const;
00048 protected:
00049 static const char* mapORAtoXOPEN(const int errorcode);
00050 const int _errorcode;
00051 friend
00052 class OracleExceptionFactory;
00053 };
00054
00055 class NFOOracleException
00056 : virtual public OracleException
00057 , virtual public NoFailoverException
00058 {
00059 public:
00060 NFOOracleException(const std::string& message, const int errorcode, const std::string& sqlstm);
00061 };
00062
00063 }
00064
00065 #endif