#ifndef FAIRDBEXCEPTION #define FAIRDBEXCEPTION #include "Riosfwd.h" // for ostream #include "Rtypes.h" // for Int_t, etc #include // for ostream #include // for string, basic_string class FairDbException; class TSQLServer; class TSQLStatement; std::ostream& operator<<(std::ostream& s, const FairDbException& e); class FairDbException { public: FairDbException(const char* msg = 0, Int_t code = -1, Int_t dbType = -1 ); FairDbException(const TSQLServer& server,Int_t dbType = -1); FairDbException(const TSQLStatement& statement,Int_t dbType = -1); FairDbException(const FairDbException& that); virtual ~FairDbException(); const std::string& GetMessage() const { return fMessage; } Int_t GetErrorCode() const { return fErrorCode; } Int_t GetDbType() const { return fDbType; } private: std::string fMessage; Int_t fErrorCode; Int_t fDbType; ClassDef(FairDbException,0) // Database exception record. }; #endif // FAIRDBEXCEPTIONLOG