#include <DatabaseException.h>
Definition at line 172 of file DatabaseException.h.
Public Types | |
enum | ConnectionType { NET, FIFO, EMBEDDED } |
Public Member Functions | |
FieldIsNull () | |
This exception is thrown whenever a field which is NULL dows not have a direct conversion to a specified data type, eg NULL -> TIME. | |
FieldIsNull (const String &fn) | |
const String & | fieldName () |
const ConnectionParams & | connParams () |
Gets the connection parameters used at the time of failure. | |
const String & | errorMessage () |
Gives an specific error message regarding the reason why this exception was thrown. | |
std::string | toString () |
Displays the description of the exception. | |
const char * | backtrace () |
virtual const char * | getClassName () |
Returns the name of the current class. | |
Static Public Member Functions | |
static void | enable () |
static void | disable () |
static void | debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Will print a debug message to the screen. | |
static void | debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Protected Member Functions | |
virtual void | dumpTrace () |
Protected Attributes | |
String | _err_msg |
ConnectionParams | _conn_params |
std::string | description |
Stores the exception's description as a string. | |
std::string | __cls_name |
Private Attributes | |
String | field_name |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Object &s) |
enum xvr2::SQL::DatabaseException::ConnectionType [inherited] |
xvr2::SQL::FieldIsNull::FieldIsNull | ( | ) |
This exception is thrown whenever a field which is NULL dows not have a direct conversion to a specified data type, eg NULL -> TIME.
However this is not true for string covnersions since it is permissible to have a NULL mapped to a "".
xvr2::SQL::FieldIsNull::FieldIsNull | ( | const String & | fn | ) |
const String& xvr2::SQL::FieldIsNull::fieldName | ( | ) |
const ConnectionParams& xvr2::SQL::DatabaseException::connParams | ( | ) | [inherited] |
Gets the connection parameters used at the time of failure.
const String& xvr2::SQL::DatabaseException::errorMessage | ( | ) | [inherited] |
Gives an specific error message regarding the reason why this exception was thrown.
Depending from where the exception was thrown it is quite possible that the message might even be generated at driver level which is good since it will give more accurate information.
std::string xvr2::Exception::toString | ( | ) | [virtual, inherited] |
virtual void xvr2::ExceptionTracer::dumpTrace | ( | ) | [protected, virtual, inherited] |
static void xvr2::ExceptionTracer::enable | ( | ) | [static, inherited] |
static void xvr2::ExceptionTracer::disable | ( | ) | [static, inherited] |
const char* xvr2::ExceptionTracer::backtrace | ( | ) | [inherited] |
virtual const char* xvr2::Object::getClassName | ( | ) | [virtual, inherited] |
Returns the name of the current class.
static void xvr2::Object::debugmsg | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
Will print a debug message to the screen.
static void xvr2::Object::debugmsgln | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const Object & | s | |||
) | [friend, inherited] |
String xvr2::SQL::FieldIsNull::field_name [private] |
Definition at line 174 of file DatabaseException.h.
String xvr2::SQL::DatabaseException::_err_msg [protected, inherited] |
Definition at line 26 of file DatabaseException.h.
ConnectionParams xvr2::SQL::DatabaseException::_conn_params [protected, inherited] |
Definition at line 74 of file DatabaseException.h.
std::string xvr2::Exception::description [protected, inherited] |
std::string xvr2::Object::__cls_name [protected, inherited] |