NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions
exception.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <corelib/ncbiobj.hpp>
#include <corelib/ncbithr.hpp>
#include <corelib/ncbimtx.hpp>
#include <deque>
+ Include dependency graph for exception.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CDB_Exception
 CDB_Exception –. More...
 
struct  CDB_Exception::SParam
 
struct  CDB_Exception::SParams
 
struct  CDB_Exception::SContext
 
struct  CDB_Exception::SMessageInContext
 
class  CDB_DSEx
 
class  CDB_RPCEx
 
class  CDB_SQLEx
 
class  CDB_DeadlockEx
 
class  CDB_TimeoutEx
 
class  CDB_ClientEx
 
class  CDB_TruncateEx
 
class  CDB_MultiEx
 
class  CDB_UserHandler
 
class  CDB_UserHandler_Diag
 
class  CDB_UserHandler_Stream
 
class  CDB_UserHandler_Exception
 
class  CDB_UserHandler_Deferred
 
class  CDB_UserHandler_Exception_ODBC
 

Macros

#define NCBI_DATABASE_EXCEPTION_DEFAULT_IMPLEMENTATION(exception_class, base_class, db_err_code)
 Helper macro for default database exception implementation. More...
 
#define NCBI_DATABASE_THROW(exception_class, message, err_code, severity)
 Generic macro to throw a database exception, given the exception class, database error code and message string. More...
 
#define NCBI_DATABASE_RETHROW(prev_exception, exception_class, message, err_code, severity)
 
#define NCBI_DATABASE_THROW_ANNOTATED(ex_class, message, err_code, severity, dbg_info, conn, params)
 
#define NCBI_DATABASE_RETHROW_ANNOTATED(prev_ex, ex_class, message, err_code, severity, dbg_info, conn, params)
 
#define DATABASE_DRIVER_ERROR(message, err_code)    NCBI_DATABASE_THROW( CDB_ClientEx, message, err_code, eDiag_Error )
 
#define DATABASE_DRIVER_ERROR_EX(prev_exception, message, err_code)
 
#define DATABASE_DRIVER_WARNING(message, err_code)    NCBI_DATABASE_THROW( CDB_ClientEx, message, err_code, eDiag_Warning )
 
#define DATABASE_DRIVER_WARNING_EX(prev_exception, message, err_code)
 
#define DATABASE_DRIVER_FATAL(message, err_code)    NCBI_DATABASE_THROW( CDB_ClientEx, message, err_code, eDiag_Fatal )
 
#define DATABASE_DRIVER_FATAL_EX(prev_exception, message, err_code)
 
#define DATABASE_DRIVER_INFO(message, err_code)    NCBI_DATABASE_THROW( CDB_ClientEx, message, err_code, eDiag_Info )
 
#define DATABASE_DRIVER_INFO_EX(prev_exception, message, err_code)
 
#define CHECK_DRIVER_ERROR(failed, message, err_code)    if ( ( failed ) ) { DATABASE_DRIVER_ERROR( message, err_code ); }
 
#define CHECK_DRIVER_WARNING(failed, message, err_code)    if ( ( failed ) ) { DATABASE_DRIVER_WARNING( message, err_code ); }
 
#define CHECK_DRIVER_FATAL(failed, message, err_code)    if ( ( failed ) ) { DATABASE_DRIVER_FATAL( message, err_code ); }
 
#define CHECK_DRIVER_INFO(failed, message, err_code)    if ( ( failed ) ) { DATABASE_DRIVER_INFO( message, err_code ); }
 

Typedefs

typedef CDB_UserHandler_Diag CDB_UserHandler_Default
 

Enumerations

enum  EDB_Severity {
  eDB_Info , eDB_Warning , eDB_Error , eDB_Fatal ,
  eDB_Unknown
}
 

Functions

CDB_Exception::SMessageInContext operator+ (const string &msg, const CDB_Exception::SContext &ctx)
 
CDB_Exception::SMessageInContext operator+ (const char *msg, const CDB_Exception::SContext &ctx)
 
ostream & operator<< (ostream &os, const CDB_Exception::SContext &ctx)
 
ostream & operator<< (ostream &os, const CDB_Exception::SMessageInContext &msg)
 
Modified on Fri Apr 12 17:17:19 2024 by modify_doxy.py rev. 669887