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/bdb__expt_8hpp_source.html below:

NCBI C++ ToolKit: include/db/bdb/bdb_expt.hpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

66  static int

GetErrCode(

void

);

68  static const char

* GetErrCodeString(

int

errnum);

83  public CErrnoTemplExceptionEx

<CBDB_Exception, CBDB_StrErrAdapt::GetErrCode, CBDB_StrErrAdapt::GetErrCodeString>

95  virtual const char

* GetErrCodeString(

void

)

const override

;

101  bool

IsNoMem()

const

;

104  bool

IsBufferSmall()

const

;

107  bool

IsDeadLock()

const

;

110  bool

IsRecovery()

const

;

147  switch

(GetErrCode())

150  case eType

:

return "eType"

;

155  case eNull

:

return "eNull"

;

161  case eFileIO

:

return "eFileIO"

;

178 #define BDB_THROW(errcode, message) \ 179  throw CBDB_LibException(DIAG_COMPILE_INFO, 0, CBDB_LibException::errcode, \ 183 #define BDB_ERRNO_THROW(errnum, message) \ 184  throw CBDB_ErrnoException(DIAG_COMPILE_INFO, 0, \ 185  ((errnum > 0) ? CBDB_ErrnoException::eSystem : \ 186  CBDB_ErrnoException::eBerkeleyDB), \ 190 #define BDB_CHECK(errnum, x_db_object__) \ 193  std::string message = "BerkeleyDB error: "

; \

194

message.append(CBDB_StrErrAdapt::GetErrCodeString(errnum)); \

195

if (x_db_object__) { \

196

message.append(" Object:'"); \

197

message.append(x_db_object__); \

198

message.append("'"); \

200

BDB_ERRNO_THROW(errnum, message); \

BDB errno exception class.

Base BDB exception class.

Auxiliary exception class to wrap up Berkeley DB strerror function.

CErrnoTemplExceptionEx –.

NCBI_EXCEPTION_DEFAULT2(CBDB_ErrnoException, CParent, int)

CErrnoTemplExceptionEx< CBDB_Exception, CBDB_StrErrAdapt::GetErrCode, CBDB_StrErrAdapt::GetErrCodeString > CParent

NCBI_EXCEPTION_DEFAULT(CBDB_LibException, CBDB_Exception)

int BDB_GetErrno() const

Return Berkley DB related error code.

EErrCode

Exception types.

NCBI_EXCEPTION_DEFAULT(CBDB_Exception, CException)

virtual const char * GetErrCodeString(void) const override

@ eSystem

GetErrno() to return system lib specific error code.

@ eCannotOpenOverflowFile

virtual const char * GetErrCodeString(void) const

Get error code interpreted as text.

#define EXCEPTION_VIRTUAL_BASE

Do not use virtual base classes in exception declaration at all, because in this case derived class s...

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

Defines NCBI C++ exception handling.


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