#include <iostream>#include "TSQLServer.h"#include "TSQLStatement.h"#include "TDbiException.hxx"#include <TSK_DBI_Log.hxx>#include <MsgFormat.h>
Go to the source code of this file.
Functions | |
| ClassImp (TDbiException) TDbiException | |
| Create an exception using the msg and code provided. | |
| std::ostream & | operator<< (std::ostream &os, const TDbiException &e) |
| Append message describing this exception to the std::ostream 'os'. | |
| ClassImp | ( | TDbiException | ) |
Create an exception using the msg and code provided.
Definition at line 14 of file TDbiException.cxx.
References SK_DBI_Trace.
00023 : ctors, dtor, operators then in alphabetical order. 00024 00025 //..................................................................... 00026 00027 /// Create an exception using the msg and code provided. 00028 TDbiException::TDbiException(const char* msg /*= 0*/, 00029 Int_t code /* = -1 */): 00030 fMessage(msg), 00031 fErrorCode(code) 00032 { 00033 00034 SK_DBI_Trace( "Creating TDbiException" << " "); 00035 00036 }
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const TDbiException & | e | |||
| ) |
Append message describing this exception to the std::ostream 'os'.
Definition at line 84 of file TDbiException.cxx.
References TDbiException::GetErrorCode(), and TDbiException::GetMessage().
00084 { 00085 00086 os << "Error " << e.GetErrorCode() 00087 << " (" << e.GetMessage() << ")" << endl; 00088 return os; 00089 00090 }

1.6.1