NCBI C++ ToolKit
Public Member Functions | List of all members
CNcbiError_Int Class Reference

Search Toolkit Book for CNcbiError_Int

+ Inheritance diagram for CNcbiError_Int:
+ Collaboration diagram for CNcbiError_Int:

Public Member Functions

 CNcbiError_Int (void)
 
- Public Member Functions inherited from CNcbiError
ECode Code (void) const
 Get error code. More...
 
ECategory Category (void) const
 Get error code category. More...
 
int Native (void) const
 Get native numeric value of the error. More...
 
const stringExtra (void) const
 Get string information provided when this error was set. More...
 
 CNcbiError (const CNcbiError &err)
 Copy constructor. More...
 
 ~CNcbiError (void)
 
CNcbiErroroperator= (const CNcbiError &err)
 Assignment. More...
 
bool operator== (ECode err) const
 Comparison. More...
 
 DECLARE_OPERATOR_BOOL (Code() !=eSuccess)
 Operator bool: returns TRUE if error was not set to "success". More...
 

Additional Inherited Members

- Public Types inherited from CNcbiError
enum  ECode {
  eNotSet = -1 , eSuccess = 0 , eAddressFamilyNotSupported = EAFNOSUPPORT , eAddressInUse = EADDRINUSE ,
  eAddressNotAvailable = EADDRNOTAVAIL , eAlreadyConnected = EISCONN , eArgumentListTooLong = E2BIG , eArgumentOutOfDomain = EDOM ,
  eBadAddress = EFAULT , eBadFileDescriptor = EBADF , eBadMessage = EBADMSG , eBrokenPipe = EPIPE ,
  eConnectionAborted = ECONNABORTED , eConnectionAlreadyInProgress = EALREADY , eConnectionRefused = ECONNREFUSED , eConnectionReset = ECONNRESET ,
  eCrossDeviceLink = EXDEV , eDestinationAddressRequired = EDESTADDRREQ , eDeviceOrResourceBusy = EBUSY , eDirectoryNotEmpty = ENOTEMPTY ,
  eExecutableFormatError = ENOEXEC , eFileExists = EEXIST , eFileTooLarge = EFBIG , eFilenameTooLong = ENAMETOOLONG ,
  eFunctionNotSupported = ENOSYS , eHostUnreachable = EHOSTUNREACH , eIdentifierRemoved = EIDRM , eIllegalByteSequence = EILSEQ ,
  eInappropriateIoControlOperation = ENOTTY , eInterrupted = EINTR , eInvalidArgument = EINVAL , eInvalidSeek = ESPIPE ,
  eIoError = EIO , eIsADirectory = EISDIR , eMessageSize = EMSGSIZE , eNetworkDown = ENETDOWN ,
  eNetworkReset = ENETRESET , eNetworkUnreachable = ENETUNREACH , eNoBufferSpace = ENOBUFS , eNoChildProcess = ECHILD ,
  eNoLink = ENOLINK , eNoLockAvailable = ENOLCK , eNoMessage = ENOMSG , eNoProtocolOption = ENOPROTOOPT ,
  eNoSpaceOnDevice = ENOSPC , eNoSuchDeviceOrAddress = ENXIO , eNoSuchDevice = ENODEV , eNoSuchFileOrDirectory = ENOENT ,
  eNoSuchProcess = ESRCH , eNotADirectory = ENOTDIR , eNotASocket = ENOTSOCK , eNotConnected = ENOTCONN ,
  eNotEnoughMemory = ENOMEM , eNotSupported = ENOTSUP , eOperationCanceled = ECANCELED , eOperationInProgress = EINPROGRESS ,
  eOperationNotPermitted = EPERM , eOperationNotSupported = EOPNOTSUPP , eOperationWouldBlock = EWOULDBLOCK , ePermissionDenied = EACCES ,
  eProtocolError = EPROTO , eProtocolNotSupported = EPROTONOSUPPORT , eReadOnlyFileSystem = EROFS , eResourceDeadlockWouldOccur = EDEADLK ,
  eResourceUnavailableTryAgain = EAGAIN , eResultOutOfRange = ERANGE , eTextFileBusy = ETXTBSY , eTimedOut = ETIMEDOUT ,
  eTooManyFilesOpenInSystem = ENFILE , eTooManyFilesOpen = EMFILE , eTooManyLinks = EMLINK , eTooManySymbolicLinkLevels = ELOOP ,
  eValueTooLarge = EOVERFLOW , eWrongProtocolType = EPROTOTYPE , eUnknown = 0x1000
}
 
enum  ECategory { eGeneric = 0 , eNcbi = 1 , eMsWindows = 2 }
 Error code category. More...
 
- Static Public Member Functions inherited from CNcbiError
static const CNcbiErrorGetLast (void)
 Get the error that was last set (in the current thread) More...
 
static void Set (ECode code)
 Set last error using native error code enum. More...
 
static void Set (ECode code, const CTempString extra)
 Set last error using native error code enum. More...
 
static void Set (ECode code, const char *extra)
 Set last error using native error code enum. More...
 
static void Set (ECode code, const string &extra)
 Set last error using native error code enum. More...
 
static void Set (ECode code, string &&extra)
 Set last error using native error code enum. More...
 
static void SetErrno (int errno_code)
 Set last error using errno code. More...
 
static void SetErrno (int errno_code, const CTempString extra)
 Set last error using errno code. More...
 
static void SetErrno (int errno_code, const string &extra)
 Set last error using errno code. More...
 
static void SetErrno (int errno_code, const char *extra)
 Set last error using errno code. More...
 
static void SetErrno (int errno_code, string &&extra)
 Set last error using errno code. More...
 
static void SetFromErrno (void)
 Set last error using current "errno" code. More...
 
static void SetFromErrno (const CTempString extra)
 Set last error using current "errno" code. More...
 
static void SetFromErrno (const string &extra)
 Set last error using current "errno" code. More...
 
static void SetFromErrno (const char *extra)
 Set last error using current "errno" code. More...
 
static void SetFromErrno (string &&extra)
 Set last error using current "errno" code. More...
 
static void SetWindowsError (int native_err_code)
 Set last error using Windows-specific error code. More...
 
static void SetWindowsError (int native_err_code, const CTempString extra)
 Set last error using Windows-specific error code. More...
 
static void SetWindowsError (int native_err_code, const string &extra)
 Set last error using Windows-specific error code. More...
 
static void SetWindowsError (int native_err_code, const char *extra)
 Set last error using Windows-specific error code. More...
 
static void SetWindowsError (int native_err_code, string &&extra)
 Set last error using Windows-specific error code. More...
 
static void SetFromWindowsError (void)
 Set last error on MS Windows using GetLastError() More...
 
static void SetFromWindowsError (const CTempString extra)
 Set last error on MS Windows using GetLastError() More...
 
static void SetFromWindowsError (const string &extra)
 Set last error on MS Windows using GetLastError() More...
 
static void SetFromWindowsError (const char *extra)
 Set last error on MS Windows using GetLastError() More...
 
static void SetFromWindowsError (string &&extra)
 Set last error on MS Windows using GetLastError() More...
 
- Protected Member Functions inherited from CNcbiError
 CNcbiError (void)
 

Detailed Description

Definition at line 44 of file ncbierror.cpp.

Constructor & Destructor Documentation

◆ CNcbiError_Int()

CNcbiError_Int::CNcbiError_Int ( void  )
inline

Definition at line 47 of file ncbierror.cpp.


The documentation for this class was generated from the following file:
Modified on Thu May 23 12:31:25 2024 by modify_doxy.py rev. 669887