NCBI C++ ToolKit
Public Types | Public Member Functions | Static Private Member Functions | List of all members
CDB_ClientEx Class Reference

Search Toolkit Book for CDB_ClientEx

#include <dbapi/driver/exception.hpp>

+ Inheritance diagram for CDB_ClientEx:
+ Collaboration diagram for CDB_ClientEx:

Public Types

typedef int TErrCode
 
- Public Types inherited from CDB_Exception
enum  EErrCode {
  eDS , eRPC , eSQL , eDeadlock ,
  eTimeout , eClient , eMulti , eTruncate
}
 Error types that can be generated. More...
 
typedef EErrCode EType
 

Public Member Functions

 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 (const CDiagCompileInfo &info, const CException *prev_exception, const SMessageInContext &message, EDiagSev severity, int db_err_code)
 
 CDB_ClientEx (const CDB_ClientEx &other)
 
virtual ~ CDB_ClientEx (void) noexcept
 
const char * GetType (void) const override
 
TErrCode GetErrCode (void) const
 
virtual CDB_ExceptionClone (void) const override
 
 NCBI_EXCEPTION_DEFAULT_THROW (CDB_ClientEx) protected
 
virtual const CExceptionx_Clone (void) const override
 
- Public Member Functions inherited from CDB_Exception
EDB_Severity Severity (void) const
 
int GetDBErrCode (void) const
 
const char * SeverityString (void) const
 
virtual const char * GetErrCodeString (void) const override
 
EType Type (void) const
 
virtual const char * TypeString () const
 
int ErrCode (void) const
 
const stringMessage (void) const
 
const stringOriginatedFrom () const
 
void SetServerName (const string &sn)
 
const stringGetServerName (void) const
 
void SetUserName (const string &name)
 
const stringGetUserName (void) const
 
void SetDatabaseName (const string &d)
 
const stringGetDatabaseName (void) const
 
const SContextGetContext (void) const
 
void ApplyContext (const SContext &ctx)
 
void SetFromConnection (const impl::CConnection &connection)
 
void SetExtraMsg (const string &msg)
 
const stringGetExtraMsg (void) const
 
void SetParams (const CDBParams *params)
 
void SetParams (const CDBParams &params)
 
CConstRef< SParamsGetParams (void) const
 
void SetRowsInBatch (unsigned int n)
 
unsigned int GetRowsInBatch (void) const
 
void SetSybaseSeverity (int severity)
 WARNING !!! Sybase severity value can be provided by Sybase/FreeTDS ctlib drivers only. More...
 
int GetSybaseSeverity (void) const
 
virtual void ReportExtra (ostream &out) const override
 

Static Private Member Functions

static void xx_unused_CDB_ClientEx (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from CDB_Exception
static const char * SeverityString (EDB_Severity sev)
 
template<class E >
static void MakeException (const CDiagCompileInfo &info, const SMessageInContext &message, EDiagSev severity, int db_err_code)
 
- Protected Member Functions inherited from CDB_Exception
void x_StartOfWhat (ostream &out) const
 
void x_EndOfWhat (ostream &out) const
 
void x_Init (const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity) override
 
virtual void x_Assign (const CException &src) override
 
void x_InitCDB (int db_error_code)
 
SContextx_SetContext (void)
 
- Protected Attributes inherited from CDB_Exception
int m_DBErrCode
 

Detailed Description

Definition at line 446 of file exception.hpp.


The documentation for this class was generated from the following file:
Modified on Sun Feb 25 03:01:51 2024 by modify_doxy.py rev. 669887