A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/group__DbExceptions.html below:

NCBI C++ ToolKit: Database Exceptions

#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 ); }   enum   EDB_Severity {
  eDB_Info , eDB_Warning , eDB_Error , eDB_Fatal ,
  eDB_Unknown
}   enum   CDB_Exception::EErrCode {
  CDB_Exception::eDS , CDB_Exception::eRPC , CDB_Exception::eSQL , CDB_Exception::eDeadlock ,
  CDB_Exception::eTimeout , CDB_Exception::eClient , CDB_Exception::eMulti , CDB_Exception::eTruncate
}   Error types that can be generated. More...
    CDB_Exception::SParams::~SParams (void)     CDB_Exception::SContext::SContext ()     CDB_Exception::SContext::SContext (const CDBConnParams &params)   void  CDB_Exception::SContext::UpdateFrom (const SContext &ctx)     CDB_Exception::SMessageInContext::SMessageInContext (const string &msg, const SContext &ctx)     CDB_Exception::SMessageInContext::SMessageInContext (const string &msg=kEmptyStr)     CDB_Exception::SMessageInContext::SMessageInContext (const char *msg)   SMessageInContext  CDB_Exception::SMessageInContext::operator+ (const SContext &ctx) const     CDB_Exception::SMessageInContext::operator const string & (void) const   EDB_Severity  CDB_Exception::Severity (void) const   int  CDB_Exception::GetDBErrCode (void) const   const char *  CDB_Exception::SeverityString (void) const   static const char *  CDB_Exception::SeverityString (EDB_Severity sev)   virtual const char *  CDB_Exception::GetErrCodeString (void) const override   EType  CDB_Exception::Type (void) const   virtual const char *  CDB_Exception::TypeString () const   int  CDB_Exception::ErrCode (void) const   const stringCDB_Exception::Message (void) const   const stringCDB_Exception::OriginatedFrom () const   void  CDB_Exception::SetServerName (const string &sn)   const stringCDB_Exception::GetServerName (void) const   void  CDB_Exception::SetUserName (const string &name)   const stringCDB_Exception::GetUserName (void) const   void  CDB_Exception::SetDatabaseName (const string &d)   const stringCDB_Exception::GetDatabaseName (void) const   const SContextCDB_Exception::GetContext (void) const   void  CDB_Exception::ApplyContext (const SContext &ctx)   void  CDB_Exception::SetFromConnection (const impl::CConnection &connection)   void  CDB_Exception::SetExtraMsg (const string &msg)   const stringCDB_Exception::GetExtraMsg (void) const   void  CDB_Exception::SetParams (const CDBParams *params)   void  CDB_Exception::SetParams (const CDBParams &params)   CConstRef< SParamsCDB_Exception::GetParams (void) const   void  CDB_Exception::SetRowsInBatch (unsigned int n)   unsigned int  CDB_Exception::GetRowsInBatch (void) const   void  CDB_Exception::SetSybaseSeverity (int severity)   WARNING !!! Sybase severity value can be provided by Sybase/FreeTDS ctlib drivers only. More...
  int  CDB_Exception::GetSybaseSeverity (void) const   virtual void  CDB_Exception::ReportExtra (ostream &out) const override   virtual CDB_ExceptionCDB_Exception::Clone (void) const   template<class E > static void  CDB_Exception::MakeException (const CDiagCompileInfo &info, const SMessageInContext &message, EDiagSev severity, int db_err_code)   void  CDB_Exception::x_StartOfWhat (ostream &out) const   void  CDB_Exception::x_EndOfWhat (ostream &out) const   void  CDB_Exception::x_Init (const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity) override   virtual void  CDB_Exception::x_Assign (const CException &src) override   void  CDB_Exception::x_InitCDB (int db_error_code)   SContextCDB_Exception::x_SetContext (void)   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)     CDB_DSEx::CDB_DSEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, EDiagSev severity, int db_err_code)     CDB_DSEx::CDB_DSEx (const CDB_DSEx &other)   virtual  CDB_DSEx::~ CDB_DSEx (void) noexcept   const char *  CDB_DSEx::GetType (void) const override   TErrCode  CDB_DSEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_DSEx::Clone (void) const override     CDB_DSEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_DSEx) protected   virtual const CExceptionCDB_DSEx::x_Clone (void) const override   static void  CDB_DSEx::xx_unused_CDB_DSEx (void)     CDB_RPCEx::CDB_RPCEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, EDiagSev severity, int db_err_code, const string &proc_name, int proc_line)     CDB_RPCEx::CDB_RPCEx (const CDB_RPCEx &other)   virtual  CDB_RPCEx::~ CDB_RPCEx (void) noexcept   const char *  CDB_RPCEx::GetType (void) const override   TErrCode  CDB_RPCEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_RPCEx::Clone (void) const override     CDB_RPCEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_RPCEx) protected   virtual const CExceptionCDB_RPCEx::x_Clone (void) const override   static void  CDB_RPCEx::xx_unused_CDB_RPCEx (void)   const stringCDB_RPCEx::ProcName () const   int  CDB_RPCEx::ProcLine () const   virtual void  CDB_RPCEx::ReportExtra (ostream &out) const override   virtual void  CDB_RPCEx::x_Assign (const CException &src) override     CDB_SQLEx::CDB_SQLEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, EDiagSev severity, int db_err_code, const string &sql_state, int batch_line)     CDB_SQLEx::CDB_SQLEx (const CDB_SQLEx &other)   virtual  CDB_SQLEx::~ CDB_SQLEx (void) noexcept   const char *  CDB_SQLEx::GetType (void) const override   TErrCode  CDB_SQLEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_SQLEx::Clone (void) const override     CDB_SQLEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_SQLEx) protected   virtual const CExceptionCDB_SQLEx::x_Clone (void) const override   static void  CDB_SQLEx::xx_unused_CDB_SQLEx (void)   const stringCDB_SQLEx::SqlState () const   int  CDB_SQLEx::BatchLine () const   virtual void  CDB_SQLEx::ReportExtra (ostream &out) const override   virtual void  CDB_SQLEx::x_Assign (const CException &src) override     CDB_DeadlockEx::CDB_DeadlockEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message)     CDB_DeadlockEx::CDB_DeadlockEx (const CDB_DeadlockEx &other)   virtual  CDB_DeadlockEx::~ CDB_DeadlockEx (void) noexcept   const char *  CDB_DeadlockEx::GetType (void) const override   TErrCode  CDB_DeadlockEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_DeadlockEx::Clone (void) const override     CDB_DeadlockEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_DeadlockEx) protected   virtual const CExceptionCDB_DeadlockEx::x_Clone (void) const override   static void  CDB_DeadlockEx::xx_unused_CDB_DeadlockEx (void)     CDB_TimeoutEx::CDB_TimeoutEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, int db_err_code)     CDB_TimeoutEx::CDB_TimeoutEx (const CDB_TimeoutEx &other)   virtual  CDB_TimeoutEx::~ CDB_TimeoutEx (void) noexcept   const char *  CDB_TimeoutEx::GetType (void) const override   TErrCode  CDB_TimeoutEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_TimeoutEx::Clone (void) const override     CDB_TimeoutEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_TimeoutEx) protected   virtual const CExceptionCDB_TimeoutEx::x_Clone (void) const override   static void  CDB_TimeoutEx::xx_unused_CDB_TimeoutEx (void)     CDB_ClientEx::CDB_ClientEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, EDiagSev severity, int db_err_code, const SContext &dbg_info, const impl::CConnection &connection, const CDBParams *params)     CDB_ClientEx::CDB_ClientEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, EDiagSev severity, int db_err_code)     CDB_ClientEx::CDB_ClientEx (const CDB_ClientEx &other)   virtual  CDB_ClientEx::~ CDB_ClientEx (void) noexcept   const char *  CDB_ClientEx::GetType (void) const override   TErrCode  CDB_ClientEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_ClientEx::Clone (void) const override     CDB_ClientEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_ClientEx) protected   virtual const CExceptionCDB_ClientEx::x_Clone (void) const override   static void  CDB_ClientEx::xx_unused_CDB_ClientEx (void)     CDB_TruncateEx::CDB_TruncateEx (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, int db_err_code)     CDB_TruncateEx::CDB_TruncateEx (const CDB_TruncateEx &other)   virtual  CDB_TruncateEx::~ CDB_TruncateEx (void) noexcept   const char *  CDB_TruncateEx::GetType (void) const override   TErrCode  CDB_TruncateEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_TruncateEx::Clone (void) const override     CDB_TruncateEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_TruncateEx) protected   virtual const CExceptionCDB_TruncateEx::x_Clone (void) const override   static void  CDB_TruncateEx::xx_unused_CDB_TruncateEx (void)     CDB_MultiEx::CDB_MultiEx (const CDiagCompileInfo &info, const CException *prev_exception, unsigned int capacity=64)     CDB_MultiEx::CDB_MultiEx (const CDB_MultiEx &other)   virtual  CDB_MultiEx::~ CDB_MultiEx (void) noexcept   const char *  CDB_MultiEx::GetType (void) const override   TErrCode  CDB_MultiEx::GetErrCode (void) const   virtual CDB_ExceptionCDB_MultiEx::Clone (void) const override     CDB_MultiEx::NCBI_EXCEPTION_DEFAULT_THROW (CDB_MultiEx) protected   virtual const CExceptionCDB_MultiEx::x_Clone (void) const override   static void  CDB_MultiEx::xx_unused_CDB_MultiEx (void)   bool  CDB_MultiEx::Push (const CDB_Exception &ex)   CDB_ExceptionCDB_MultiEx::Pop (void)   unsigned int  CDB_MultiEx::NofExceptions () const   unsigned int  CDB_MultiEx::Capacity () const   string  CDB_MultiEx::WhatThis (void) const   virtual void  CDB_MultiEx::ReportExtra (ostream &out) const override   void  CDB_MultiEx::ReportErrorStack (ostream &out) const   virtual void  CDB_MultiEx::x_Assign (const CException &src) override     CDB_UserHandler::CDB_UserHandler (void)   virtual  CDB_UserHandler::~CDB_UserHandler (void)   static void  CDB_UserHandler::ClearExceptions (TExceptions &expts)   virtual bool  CDB_UserHandler::HandleAll (const TExceptions &exceptions)   Handle all of the exceptions resulting from a native API call. More...
  virtual bool  CDB_UserHandler::HandleIt (CDB_Exception *ex)=0   Handle the exceptions resulting from a native API call, one-by-one. More...
  virtual bool  CDB_UserHandler::HandleMessage (int severity, int msgnum, const string &message)   Handle message resulting from a native API call. More...
  static CDB_UserHandlerCDB_UserHandler::GetDefault (void)   static CDB_UserHandlerCDB_UserHandler::SetDefault (CDB_UserHandler *h)   string  CDB_UserHandler::GetExtraMsg (void) const   Method is deprecated. Use CDB_Exception::GetExtraMsg() instead. More...
  void  CDB_UserHandler::SetExtraMsg (const string &msg) const   Method is deprecated. Use CDB_Exception::SetExtraMsg() instead. More...
  bool  CDB_UserHandler::x_HandleAll (const TExceptions &exceptions)   Simply call HandleIt on each exception. More...
    CDB_UserHandler_Diag::CDB_UserHandler_Diag (const string &prefix=kEmptyStr)   virtual  CDB_UserHandler_Diag::~CDB_UserHandler_Diag ()   virtual bool  CDB_UserHandler_Diag::HandleIt (CDB_Exception *ex)   Handle the exceptions resulting from a native API call, one-by-one. More...
  virtual bool  CDB_UserHandler_Diag::HandleAll (const TExceptions &exceptions)   Handle all of the exceptions resulting from a native API call. More...
    CDB_UserHandler_Stream::CDB_UserHandler_Stream (ostream *os=0, const string &prefix=kEmptyStr, bool own_os=false)   virtual  CDB_UserHandler_Stream::~CDB_UserHandler_Stream ()   virtual bool  CDB_UserHandler_Stream::HandleIt (CDB_Exception *ex)   Handle the exceptions resulting from a native API call, one-by-one. More...
  virtual bool  CDB_UserHandler_Stream::HandleAll (const TExceptions &exceptions)   Handle all of the exceptions resulting from a native API call. More...
  virtual  CDB_UserHandler_Exception::~CDB_UserHandler_Exception (void)   virtual bool  CDB_UserHandler_Exception::HandleIt (CDB_Exception *ex)   Handle the exceptions resulting from a native API call, one-by-one. More...
  virtual bool  CDB_UserHandler_Exception::HandleAll (const TExceptions &exceptions)   Handle all of the exceptions resulting from a native API call. More...
    CDB_UserHandler_Deferred::CDB_UserHandler_Deferred (const impl::CDBHandlerStack &ultimate_handlers)     CDB_UserHandler_Deferred::~CDB_UserHandler_Deferred (void)   bool  CDB_UserHandler_Deferred::HandleIt (CDB_Exception *ex)   Handle the exceptions resulting from a native API call, one-by-one. More...
  bool  CDB_UserHandler_Deferred::HandleAll (const TExceptions &exceptions)   Handle all of the exceptions resulting from a native API call. More...
  void  CDB_UserHandler_Deferred::Flush (EDiagSev max_severity=eDiagSevMax)   virtual  CDB_UserHandler_Exception_ODBC::~CDB_UserHandler_Exception_ODBC (void)   virtual bool  CDB_UserHandler_Exception_ODBC::HandleIt (CDB_Exception *ex)   Handle the exceptions resulting from a native API call, one-by-one. More...
  ◆ CHECK_DRIVER_ERROR ◆ CHECK_DRIVER_FATAL ◆ CHECK_DRIVER_INFO ◆ CHECK_DRIVER_WARNING ◆ DATABASE_DRIVER_ERROR ◆ DATABASE_DRIVER_ERROR_EX #define DATABASE_DRIVER_ERROR_EX (   prev_exception,   message,   err_code  ) Value:

#define NCBI_DATABASE_RETHROW(prev_exception, exception_class, message, err_code, severity)

@ eDiag_Error

Error message.

Definition at line 742 of file exception.hpp.

◆ DATABASE_DRIVER_FATAL ◆ DATABASE_DRIVER_FATAL_EX #define DATABASE_DRIVER_FATAL_EX (   prev_exception,   message,   err_code  ) Value:

@ eDiag_Fatal

Fatal error – guarantees exit(or abort)

Definition at line 754 of file exception.hpp.

◆ DATABASE_DRIVER_INFO ◆ DATABASE_DRIVER_INFO_EX #define DATABASE_DRIVER_INFO_EX (   prev_exception,   message,   err_code  ) Value:

@ eDiag_Info

Informational message.

Definition at line 760 of file exception.hpp.

◆ DATABASE_DRIVER_WARNING ◆ DATABASE_DRIVER_WARNING_EX #define DATABASE_DRIVER_WARNING_EX (   prev_exception,   message,   err_code  ) Value:

@ eDiag_Warning

Warning message.

Definition at line 748 of file exception.hpp.

◆ NCBI_DATABASE_EXCEPTION_DEFAULT_IMPLEMENTATION #define NCBI_DATABASE_EXCEPTION_DEFAULT_IMPLEMENTATION (   exception_class,   base_class,   db_err_code  )

Helper macro for default database exception implementation.

Definition at line 61 of file exception.hpp.

◆ NCBI_DATABASE_RETHROW #define NCBI_DATABASE_RETHROW (   prev_exception,   exception_class,   message,   err_code,   severity  ) Value:

&(prev_exception), (message), severity, err_code )

#define DIAG_COMPILE_INFO

Make compile time diagnostic information object to use in CNcbiDiag and CException.

Definition at line 720 of file exception.hpp.

◆ NCBI_DATABASE_RETHROW_ANNOTATED #define NCBI_DATABASE_RETHROW_ANNOTATED (   prev_ex,   ex_class,   message,   err_code,   severity,   dbg_info,   conn,   params  ) Value:

err_code, dbg_info,

conn

, params)

static CS_CONNECTION * conn

Definition at line 735 of file exception.hpp.

◆ NCBI_DATABASE_THROW #define NCBI_DATABASE_THROW (   exception_class,   message,   err_code,   severity  ) Value:

do { \

NCBI_NS_NCBI::CDB_Exception::MakeException<exception_class>( \

} while(0)

Generic macro to throw a database exception, given the exception class, database error code and message string.

Definition at line 715 of file exception.hpp.

◆ NCBI_DATABASE_THROW_ANNOTATED #define NCBI_DATABASE_THROW_ANNOTATED (   ex_class,   message,   err_code,   severity,   dbg_info,   conn,   params  ) Value:

do { \

dbg_info,

conn

, params); \

throw ex; \

} while (0)

@ eRetriable_No

It makes no sense to retry the action.

Definition at line 726 of file exception.hpp.

◆ CDB_UserHandler_Default ◆ EType ◆ TErrCode [1/8] ◆ TErrCode [2/8] ◆ TErrCode [3/8] ◆ TErrCode [4/8] ◆ TErrCode [5/8] ◆ TErrCode [6/8] ◆ TErrCode [7/8] ◆ TErrCode [8/8] ◆ TExceptions ◆ TExceptionStack ◆ TParams ◆ EDB_Severity Enumerator eDB_Info  eDB_Warning  eDB_Error  eDB_Fatal  eDB_Unknown 

Definition at line 97 of file exception.hpp.

◆ EErrCode

Error types that can be generated.

Enumerator eDS  eRPC  eSQL  eDeadlock  eTimeout  eClient  eMulti  eTruncate 

Definition at line 123 of file exception.hpp.

◆ ApplyContext() ◆ BatchLine() int CDB_SQLEx::BatchLine ( ) const inline ◆ Capacity() unsigned int CDB_MultiEx::Capacity ( ) const inline ◆ CDB_ClientEx() [1/3] ◆ CDB_ClientEx() [2/3] ◆ CDB_ClientEx() [3/3] ◆ CDB_DeadlockEx() [1/2] ◆ CDB_DeadlockEx() [2/2] ◆ CDB_DSEx() [1/2] ◆ CDB_DSEx() [2/2] ◆ CDB_MultiEx() [1/2] ◆ CDB_MultiEx() [2/2] ◆ CDB_RPCEx() [1/2] ◆ CDB_RPCEx() [2/2] ◆ CDB_SQLEx() [1/2] ◆ CDB_SQLEx() [2/2] ◆ CDB_TimeoutEx() [1/2] ◆ CDB_TimeoutEx() [2/2] ◆ CDB_TruncateEx() [1/2] ◆ CDB_TruncateEx() [2/2] ◆ CDB_UserHandler() CDB_UserHandler::CDB_UserHandler ( void  )

Definition at line 597 of file exception.cpp.

◆ CDB_UserHandler_Deferred() ◆ CDB_UserHandler_Diag() ◆ CDB_UserHandler_Stream() ◆ ClearExceptions() void CDB_UserHandler::ClearExceptions ( TExceptionsexpts ) static ◆ Clone() [1/9] ◆ Clone() [2/9] ◆ Clone() [3/9] ◆ Clone() [4/9] ◆ Clone() [5/9] ◆ Clone() [6/9] ◆ Clone() [7/9] ◆ Clone() [8/9] ◆ Clone() [9/9] ◆ ErrCode() int CDB_Exception::ErrCode ( void  ) const inline ◆ Flush() ◆ GetContext() ◆ GetDatabaseName() const string& CDB_Exception::GetDatabaseName ( void  ) const inline ◆ GetDBErrCode() int CDB_Exception::GetDBErrCode ( void  ) const inline ◆ GetDefault() ◆ GetErrCode() [1/8] ◆ GetErrCode() [2/8] ◆ GetErrCode() [3/8] ◆ GetErrCode() [4/8] ◆ GetErrCode() [5/8] ◆ GetErrCode() [6/8] ◆ GetErrCode() [7/8] ◆ GetErrCode() [8/8] ◆ GetErrCodeString() const char * CDB_Exception::GetErrCodeString ( void  ) const overridevirtual ◆ GetExtraMsg() [1/2] const string& CDB_Exception::GetExtraMsg ( void  ) const inline ◆ GetExtraMsg() [2/2] string CDB_UserHandler::GetExtraMsg ( void  ) const ◆ GetParams() ◆ GetRowsInBatch() unsigned int CDB_Exception::GetRowsInBatch ( void  ) const inline ◆ GetServerName() const string& CDB_Exception::GetServerName ( void  ) const inline ◆ GetSybaseSeverity() int CDB_Exception::GetSybaseSeverity ( void  ) const inline ◆ GetType() [1/8] const char* CDB_DSEx::GetType ( void  ) const inlineoverride

Definition at line 324 of file exception.hpp.

◆ GetType() [2/8] const char* CDB_RPCEx::GetType ( void  ) const inlineoverride

Definition at line 350 of file exception.hpp.

◆ GetType() [3/8] const char* CDB_SQLEx::GetType ( void  ) const inlineoverride

Definition at line 388 of file exception.hpp.

◆ GetType() [4/8] const char* CDB_DeadlockEx::GetType ( void  ) const inlineoverride

Definition at line 420 of file exception.hpp.

◆ GetType() [5/8] const char* CDB_TimeoutEx::GetType ( void  ) const inlineoverride

Definition at line 441 of file exception.hpp.

◆ GetType() [6/8] const char* CDB_ClientEx::GetType ( void  ) const inlineoverride

Definition at line 476 of file exception.hpp.

◆ GetType() [7/8] const char* CDB_TruncateEx::GetType ( void  ) const inlineoverride

Definition at line 497 of file exception.hpp.

◆ GetType() [8/8] const char* CDB_MultiEx::GetType ( void  ) const inlineoverride

Definition at line 520 of file exception.hpp.

◆ GetUserName() const string& CDB_Exception::GetUserName ( void  ) const inline ◆ HandleAll() [1/5] ◆ HandleAll() [2/5] ◆ HandleAll() [3/5] ◆ HandleAll() [4/5] ◆ HandleAll() [5/5] ◆ HandleIt() [1/6] ◆ HandleIt() [2/6]

Handle the exceptions resulting from a native API call, one-by-one.

Returns
TRUE if "ex" is processed, FALSE if not (or if "ex" is NULL)
See also
HandleAll(), CException::Throw()

Implements CDB_UserHandler.

Definition at line 765 of file exception.cpp.

References CDB_UserHandler_Stream::m_Mtx, CDB_UserHandler_Stream::m_Output, and CDB_UserHandler_Stream::m_Prefix.

Referenced by CBlobLoader::CBlobLoader(), CBlobRetriever::CBlobRetriever(), CConnection::GetErrorInfo(), CDataSource::GetErrorInfo(), main(), CMysqlDemoApp::Run(), COcbdDemoApp::Run(), COdbcSpwhoDemoApp::Run(), CCtlLibDemoAPp::RunSample(), CCtlLibSpWhoDemoApp::RunSample(), and CBlobWriter::storeBlob().

◆ HandleIt() [3/6] ◆ HandleIt() [4/6] ◆ HandleIt() [5/6] ◆ HandleIt() [6/6]

Handle the exceptions resulting from a native API call, one-by-one.

Returns
TRUE if "ex" is processed, FALSE if not (or if "ex" is NULL)
See also
HandleAll(), CException::Throw()

Implemented in CErrHandler, CErrHandler, CSDB_UserHandler, python::CUserHandler, CToMultiExHandler, CDbapiSampleErrHandler, CDB_UserHandler_Wrapper, CDB_UserHandler_Exception_ODBC, CDB_UserHandler_Deferred, CDB_UserHandler_Exception, CDB_UserHandler_Stream, and CDB_UserHandler_Diag.

Referenced by CDB_UserHandler_Wrapper::HandleIt(), CDbapiSampleApp::Run(), CDbapiCursorApp::RunOneSample(), CDbapiBcpApp::RunSample(), CConnectPolicyApp::RunSample(), CDbapiQueryApp::RunSample(), CDbapiSendDataApp::RunSample(), CDbapiTestSpeedApp::RunSample(), CLangQueryApp::RunSample(), and CDB_UserHandler::x_HandleAll().

◆ HandleMessage() ◆ MakeException() ◆ Message() ◆ NCBI_EXCEPTION_DEFAULT_THROW() [1/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [2/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [3/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [4/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [5/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [6/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [7/8] ◆ NCBI_EXCEPTION_DEFAULT_THROW() [8/8] ◆ NofExceptions() unsigned int CDB_MultiEx::NofExceptions ( ) const inline ◆ operator const string &() CDB_Exception::SMessageInContext::operator const string & ( void  ) const inlineprivate ◆ operator+() [1/3] ◆ operator+() [2/3] ◆ operator+() [3/3] ◆ operator<<() [1/2] ◆ operator<<() [2/2] ◆ OriginatedFrom() ◆ Pop() ◆ ProcLine() int CDB_RPCEx::ProcLine ( ) const inline ◆ ProcName() ◆ Push() ◆ ReportErrorStack() void CDB_MultiEx::ReportErrorStack ( ostream &  out ) const protected ◆ ReportExtra() [1/4] void CDB_Exception::ReportExtra ( ostream &  out ) const overridevirtual ◆ ReportExtra() [2/4] void CDB_RPCEx::ReportExtra ( ostream &  out ) const overridevirtual ◆ ReportExtra() [3/4] void CDB_SQLEx::ReportExtra ( ostream &  out ) const overridevirtual ◆ ReportExtra() [4/4] void CDB_MultiEx::ReportExtra ( ostream &  out ) const overridevirtual ◆ SContext() [1/2] CDB_Exception::SContext::SContext ( ) inline

Definition at line 147 of file exception.hpp.

◆ SContext() [2/2] ◆ SetDatabaseName() void CDB_Exception::SetDatabaseName ( const stringd ) inline ◆ SetDefault() ◆ SetExtraMsg() [1/2] ◆ SetExtraMsg() [2/2] void CDB_UserHandler::SetExtraMsg ( const stringmsg ) const ◆ SetFromConnection()

Definition at line 177 of file exception.cpp.

References ctll::empty(), CDB_Exception::GetDatabaseName(), impl::CConnection::GetDatabaseName(), CDB_Exception::GetServerName(), CDB_Exception::GetUserName(), impl::CConnection::ServerName(), CDB_Exception::SetDatabaseName(), CDB_Exception::SetServerName(), CDB_Exception::SetUserName(), and impl::CConnection::UserName().

Referenced by CDB_ClientEx::CDB_ClientEx(), impl::CDBHandlerStack::x_AddDetails(), and CODBC_Reporter::x_PostMsg().

◆ SetParams() [1/2] ◆ SetParams() [2/2]

Definition at line 195 of file exception.cpp.

References CDBParams::GetName(), CDBParams::GetNum(), CDBParams::GetValue(), i, CDB_Exception::m_Params, n, CDB_Exception::SParam::name, NULL, CDB_Object::ShallowClone(), and CDB_Exception::SParam::value.

Referenced by CDB_ClientEx::CDB_ClientEx(), impl::CDBHandlerStack::x_AddDetails(), and CODBC_Reporter::x_PostMsg().

◆ SetRowsInBatch() void CDB_Exception::SetRowsInBatch ( unsigned int  n ) inline ◆ SetServerName() void CDB_Exception::SetServerName ( const stringsn ) inline ◆ SetSybaseSeverity() void CDB_Exception::SetSybaseSeverity ( int  severity ) inline ◆ SetUserName() void CDB_Exception::SetUserName ( const stringname ) inline ◆ Severity()

Definition at line 118 of file exception.cpp.

References eDB_Error, eDB_Fatal, eDB_Info, eDB_Unknown, eDB_Warning, eDiag_Critical, eDiag_Error, eDiag_Fatal, eDiag_Info, eDiag_Trace, eDiag_Warning, and result.

◆ SeverityString() [1/2] ◆ SeverityString() [2/2] const char * CDB_Exception::SeverityString ( void  ) const ◆ SMessageInContext() [1/3] CDB_Exception::SMessageInContext::SMessageInContext ( const char *  msg ) inline

Definition at line 165 of file exception.hpp.

◆ SMessageInContext() [2/3] ◆ SMessageInContext() [3/3] ◆ SqlState() ◆ Type() ◆ TypeString() virtual const char* CDB_Exception::TypeString ( ) const inlinevirtual ◆ UpdateFrom() void CDB_Exception::SContext::UpdateFrom ( const SContextctx ) ◆ WhatThis() string CDB_MultiEx::WhatThis ( void  ) const ◆ x_Assign() [1/4] ◆ x_Assign() [2/4] ◆ x_Assign() [3/4] ◆ x_Assign() [4/4] ◆ x_Clone() [1/8] ◆ x_Clone() [2/8] ◆ x_Clone() [3/8] ◆ x_Clone() [4/8] ◆ x_Clone() [5/8] ◆ x_Clone() [6/8] ◆ x_Clone() [7/8] ◆ x_Clone() [8/8] ◆ x_EndOfWhat() void CDB_Exception::x_EndOfWhat ( ostream &  out ) const protected ◆ x_HandleAll() ◆ x_Init() ◆ x_InitCDB() void CDB_Exception::x_InitCDB ( int  db_error_code ) inlineprotected ◆ x_SetContext() ◆ x_StartOfWhat() void CDB_Exception::x_StartOfWhat ( ostream &  out ) const protected ◆ xx_unused_CDB_ClientEx() static void CDB_ClientEx::xx_unused_CDB_ClientEx ( void  ) staticprivate ◆ xx_unused_CDB_DeadlockEx() static void CDB_DeadlockEx::xx_unused_CDB_DeadlockEx ( void  ) staticprivate ◆ xx_unused_CDB_DSEx() static void CDB_DSEx::xx_unused_CDB_DSEx ( void  ) staticprivate ◆ xx_unused_CDB_MultiEx() static void CDB_MultiEx::xx_unused_CDB_MultiEx ( void  ) staticprivate ◆ xx_unused_CDB_RPCEx() static void CDB_RPCEx::xx_unused_CDB_RPCEx ( void  ) staticprivate ◆ xx_unused_CDB_SQLEx() static void CDB_SQLEx::xx_unused_CDB_SQLEx ( void  ) staticprivate ◆ xx_unused_CDB_TimeoutEx() static void CDB_TimeoutEx::xx_unused_CDB_TimeoutEx ( void  ) staticprivate ◆ xx_unused_CDB_TruncateEx() static void CDB_TruncateEx::xx_unused_CDB_TruncateEx ( void  ) staticprivate ◆ ~ CDB_ClientEx() ◆ ~ CDB_DeadlockEx() ◆ ~ CDB_DSEx() ◆ ~ CDB_MultiEx() ◆ ~ CDB_RPCEx() ◆ ~ CDB_SQLEx() ◆ ~ CDB_TimeoutEx() ◆ ~ CDB_TruncateEx() ◆ ~CDB_UserHandler() CDB_UserHandler::~CDB_UserHandler ( void  ) virtual

Definition at line 601 of file exception.cpp.

◆ ~CDB_UserHandler_Deferred() CDB_UserHandler_Deferred::~CDB_UserHandler_Deferred ( void  ) ◆ ~CDB_UserHandler_Diag() CDB_UserHandler_Diag::~CDB_UserHandler_Diag ( ) virtual ◆ ~CDB_UserHandler_Exception() CDB_UserHandler_Exception::~CDB_UserHandler_Exception ( void  ) virtual

Definition at line 796 of file exception.cpp.

◆ ~CDB_UserHandler_Exception_ODBC() CDB_UserHandler_Exception_ODBC::~CDB_UserHandler_Exception_ODBC ( void  ) virtual

Definition at line 950 of file exception.cpp.

◆ ~CDB_UserHandler_Stream() CDB_UserHandler_Stream::~CDB_UserHandler_Stream ( ) virtual ◆ ~SParams() CDB_Exception::SParams::~SParams ( void  ) ◆ context ◆ database_name string CDB_Exception::SContext::database_name ◆ extra_msg string CDB_Exception::SContext::extra_msg

Definition at line 155 of file exception.hpp.

Referenced by CBulkInsertImpl::CBulkInsertImpl(), CQueryImpl::ClearParameter(), CQueryImpl::ClearParameters(), CQueryImpl::ExecuteSP(), CSDB_Exception::GetExtraMsg(), CDB_Exception::SetExtraMsg(), CQueryImpl::SetNullParameter(), CQueryImpl::SetParameter(), CQueryImpl::SetSql(), CQueryImpl::x_ClearAllParams(), CQueryImpl::x_GetContext(), and CQueryImpl::x_SetOutParameter().

◆ m_Bag ◆ m_BatchLine int CDB_SQLEx::m_BatchLine private ◆ m_Context ◆ m_DBErrCode int CDB_Exception::m_DBErrCode protected ◆ m_Mtx ◆ m_Mutex ◆ m_NofRooms unsigned int CDB_MultiEx::m_NofRooms private ◆ m_Output ostream* CDB_UserHandler_Stream::m_Output private ◆ m_OwnOutput bool CDB_UserHandler_Stream::m_OwnOutput private ◆ m_Params ◆ m_Prefix [1/2] string CDB_UserHandler_Diag::m_Prefix private ◆ m_Prefix [2/2] string CDB_UserHandler_Stream::m_Prefix private ◆ m_ProcLine int CDB_RPCEx::m_ProcLine private ◆ m_ProcName ◆ m_RowsInBatch unsigned int CDB_Exception::m_RowsInBatch private ◆ m_SavedExceptions TExceptions CDB_UserHandler_Deferred::m_SavedExceptions private ◆ m_SqlState ◆ m_SybaseSeverity int CDB_Exception::m_SybaseSeverity private ◆ m_UltimateHandlers ◆ message string CDB_Exception::SMessageInContext::message ◆ name string CDB_Exception::SParam::name ◆ params TParams CDB_Exception::SParams::params ◆ server_name string CDB_Exception::SContext::server_name ◆ username string CDB_Exception::SContext::username ◆ value ◆ CDB_Exception ◆ CDB_MultiEx ◆ CSDB_Exception

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4