: m_Code(
eSuccess), m_Category(eGeneric), m_Native(0)
79 #if defined(NCBI_OS_MSWIN) 198 x_Init(native_err_code, extra);
204 x_Init(native_err_code, extra);
210 x_Init(native_err_code, extra);
216 x_Init(native_err_code, extra);
251 #if defined(NCBI_OS_MSWIN) 338 if(!err.
Extra().empty()) {
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static const char * str(char *buf, int n)
static void SetFromWindowsError(void)
Set last error on MS Windows using GetLastError()
const char * Ncbi_strerror(int errnum)
static CNcbiError * x_Init(int err_code)
static const char * GetErrCodeString(int errnum)
ECategory Category(void) const
Get error code category.
const string & Extra(void) const
Get string information provided when this error was set.
static void SetFromErrno(void)
Set last error using current "errno" code.
ECode Code(void) const
Get error code.
static void Set(ECode code)
Set last error using native error code enum.
int Native(void) const
Get native numeric value of the error.
static const CNcbiError & GetLast(void)
Get the error that was last set (in the current thread)
static void SetWindowsError(int native_err_code)
Set last error using Windows-specific error code.
static void x_SetWindowsCodeCategory(CNcbiError *e)
static void SetErrno(int errno_code)
Set last error using errno code.
CNcbiOstream & operator<<(CNcbiOstream &str, const CNcbiError &err)
Serialize error code + description provided by OS + extra string data.
@ eConnectionAlreadyInProgress
@ eTooManySymbolicLinkLevels
@ eAddressFamilyNotSupported
Generic error codes are set based on errno error codes.
@ eDestinationAddressRequired
@ eUnknown
Unknown error.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static CNcbiError * NcbiError_GetOrCreate(void)
static CStaticTls< CNcbiError > s_Last
Defines NCBI C++ Toolkit portable error codes.
Multi-threading â classes, functions, and features.
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