Go to the SVN repository for this file.
66 static intGetErrCode(
void);
68 static const char* GetErrCodeString(
interrnum);
83 public CErrnoTemplExceptionEx<CBDB_Exception, CBDB_StrErrAdapt::GetErrCode, CBDB_StrErrAdapt::GetErrCodeString>
95 virtual const char* GetErrCodeString(
void)
const override;
101 boolIsNoMem()
const;
104 boolIsBufferSmall()
const;
107 boolIsDeadLock()
const;
110 boolIsRecovery()
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: "; \
194message.append(CBDB_StrErrAdapt::GetErrCodeString(errnum)); \
195if (x_db_object__) { \
196message.append(" Object:'"); \
197message.append(x_db_object__); \
198message.append("'"); \
200BDB_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