NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Enumerator | Functions | Variables
Exceptions Hierarchy
+ Collaboration diagram for Exceptions Hierarchy:

Classes

class  CNcbiError
 
struct  is_exception< T, class >
 
struct  is_exception< T, typename enable_if< is_member_function_pointer< decltype(&T::what)>::value, T >::type >
 
struct  has_no_output_operator_impl< T >
 
struct  has_no_output_operator< T >
 
struct  has_output_operator< T, class >
 
struct  has_output_operator< T, typename enable_if< !has_no_output_operator_impl< T >::type::value, T >::type >
 
struct  is_printable< T, class >
 
struct  is_printable< T, typename enable_if< !is_exception< T >::value &&has_output_operator< T >::value, T >::type >
 
struct  is_non_printable< T, class >
 
struct  is_non_printable< T, typename enable_if< !is_exception< T >::value &&!is_printable< T >::value, T >::type >
 
class  CExceptionArgs_Base
 
class  CExceptionArgsManip
 
class  CExceptionArgsManip_Wrapper
 Manipulator function wrapper. More...
 
class  CExceptionArgs< TErrCode >
 
class  CException
 
class  Module
 Module manipulator. More...
 
class  Retriable
 Retriable manipulator. More...
 
class  CExceptionReporter
 CExceptionReporter –. More...
 
class  CExceptionReporterStream
 CExceptionReporterStream –. More...
 
class  CCoreException
 CCoreException –. More...
 
class  CInvalidParamException
 CInvalidParamException –. More...
 
class  CLastErrorAdapt
 
class  CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >
 CErrnoTemplExceptionEx –. More...
 
class  CErrnoTemplException< TBase >
 CErrnoTemplException –. More...
 
class  CErrnoTemplException_Win< TBase >
 

Macros

#define THROWS_NONE
 Do not use 'throw' dynamic exception specification for C++11 compilers. More...
 
#define THROWS(x)
 
#define ABORT_ON_THROW   "ABORT_ON_THROW"
 ABORT_ON_THROW controls if program should be aborted. More...
 
#define RETHROW_TRACE
 Rethrow trace. More...
 
#define THROW_TRACE_SIMPLE(exception_object)
 Throw trace. More...
 
#define THROW_TRACE_ARGS(exception_class, ...)
 Throw trace. More...
 
#define THROW0_TRACE(exception_object)
 Throw trace. More...
 
#define THROW0p_TRACE(exception_object)
 Throw trace. More...
 
#define THROW0np_TRACE(exception_object)
 Throw trace. More...
 
#define THROW1_TRACE(exception_class, exception_arg)
 Throw trace. More...
 
#define THROW1p_TRACE(exception_class, exception_arg)
 Throw trace. More...
 
#define THROW1np_TRACE(exception_class, exception_arg)
 Throw trace. More...
 
#define THROW_TRACE(exception_class, exception_args)
 Throw trace. More...
 
#define THROWp_TRACE(exception_class, exception_args)
 Throw trace. More...
 
#define THROWnp_TRACE(exception_class, exception_args)
 Throw trace. More...
 
#define STD_CATCH(message)
 Standard handling of "exception"-derived exceptions. More...
 
#define STD_CATCH_ALL(message)
 Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions. More...
 
#define NCBI_CATCH(message)
 Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it. More...
 
#define NCBI_CATCH_ALL(message)
 This macro is deprecated - use *_X or *_XX variant instead of it. More...
 
#define STD_CATCH_X(err_subcode, message)    STD_CATCH_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 Standard handling of "exception"-derived exceptions with default error code and given error subcode placed in diagnostics. More...
 
#define STD_CATCH_ALL_X(err_subcode, message)    STD_CATCH_ALL_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions. More...
 
#define NCBI_CATCH_X(err_subcode, message)    NCBI_CATCH_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 Catch CExceptions as well with default error code and given error subcode placed in diagnostics. More...
 
#define NCBI_CATCH_ALL_X(err_subcode, message)    NCBI_CATCH_ALL_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 
#define STD_CATCH_XX(err_name, err_subcode, message)
 Standard handling of "exception"-derived exceptions with given error code name and given error subcode placed in diagnostics. More...
 
#define STD_CATCH_ALL_XX(err_name, err_subcode, message)
 Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions. More...
 
#define NCBI_CATCH_XX(err_name, err_subcode, message)
 Catch CExceptions as well with given error code name and given error subcode placed in diagnostics. More...
 
#define NCBI_CATCH_ALL_XX(err_name, err_subcode, message)
 
#define FORMAT(message)    NCBI_NS_NCBI::CNcbiOstrstreamToString(static_cast<NCBI_NS_NCBI::CNcbiOstrstream&>(NCBI_NS_NCBI::CNcbiOstrstream().flush() << message))
 Format message using iostreams library. More...
 
#define NCBI_EXCEPTION_VAR_EX(name, prev_exception_ptr, exception_class, err_code, message)
 Create an exception instance to be thrown later, given the exception class, previous exception pointer, error code and message string. More...
 
#define NCBI_EXCEPTION_VAR(name, exception_class, err_code, message)    NCBI_EXCEPTION_VAR_EX(name, 0, exception_class, err_code, message)
 Create an instance of the exception to be thrown later. More...
 
#define NCBI_EXCEPTION_THROW(exception_var)    throw (exception_var)
 Throw an existing exception object. More...
 
#define NCBI_EXCEPTION_EMPTY_NAME
 
#define NCBI_EXCEPTION(exception_class, err_code, message)
 Generic macro to make an exception, given the exception class, error code and message string. More...
 
#define NCBI_THROW(exception_class, err_code, message)
 Generic macro to throw an exception, given the exception class, error code and message string. More...
 
#define NCBI_USER_THROW(message)    NCBI_THROW(NCBI_NS_NCBI::CException, eUnknown, message)
 Throw a quick-and-dirty runtime exception of type 'CException' with the given error message and error code 'eUnknown'. More...
 
#define NCBI_THROW_FMT(exception_class, err_code, message)    NCBI_THROW(exception_class, err_code, FORMAT(message))
 The same as NCBI_THROW but with message processed as output to ostream. More...
 
#define NCBI_USER_THROW_FMT(message)    NCBI_THROW_FMT(NCBI_NS_NCBI::CException, eUnknown, message)
 Throw a "user exception" with message processed as output to ostream. More...
 
#define NCBI_EXCEPTION_EX(prev_exception, exception_class, err_code, message)
 Generic macro to make an exception, given the exception class, previous exception, error code and message string. More...
 
#define NCBI_RETHROW(prev_exception, exception_class, err_code, message)
 Generic macro to re-throw an exception. More...
 
#define NCBI_RETHROW_FMT(prev_exception, exception_class, err_code, message)    NCBI_RETHROW(prev_exception, exception_class, err_code, FORMAT(message))
 The same as NCBI_RETHROW but with message processed as output to ostream. More...
 
#define NCBI_RETHROW_SAME(prev_exception, message)
 Generic macro to re-throw the same exception. More...
 
#define NCBI_REPORT_EXCEPTION(title, ex)
 Generate a report on the exception. More...
 
#define NCBI_REPORT_EXCEPTION_X(err_subcode, title, ex)    NCBI_REPORT_EXCEPTION_XX(NCBI_USE_ERRCODE_X, err_subcode, title, ex)
 Generate a report on the exception with default error code and given subcode. More...
 
#define NCBI_REPORT_EXCEPTION_XX(err_name, err_subcode, title, ex)
 Generate a report on the exception with default error code and given subcode. More...
 
#define NCBI_EXCEPTION_DEFAULT_THROW(exception_class)
 
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON(exception_class, base_class)
 
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION(exception_class, base_class)
 Helper macro for default exception implementation. More...
 
#define NCBI_EXCEPTION_DEFAULT(exception_class, base_class)
 To help declare new exception class. More...
 
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL(exception_class, base_class)
 Helper macro added to support templatized exceptions. More...
 
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL_ERRNO(exception_class, base_class)
 Helper macro added to support errno based templatized exceptions. More...
 
#define EXCEPTION_VIRTUAL_BASE
 Do not use virtual base classes in exception declaration at all, because in this case derived class should initialize all base classes directly, that is not convenient and hard to control. More...
 
#define NCBI_ERRNO_CODE_WRAPPER   NCBI_NS_NCBI::NcbiErrnoCode
 
#define NCBI_ERRNO_STR_WRAPPER   NCBI_NS_NCBI::NcbiErrnoStr
 
#define NCBI_LASTERROR_CODE_WRAPPER    NCBI_NS_NCBI::CLastErrorAdapt::GetErrCode
 
#define NCBI_LASTERROR_STR_WRAPPER    NCBI_NS_NCBI::CLastErrorAdapt::GetErrCodeString
 
#define NCBI_EXCEPTION2_VAR(name, exception_class, err_code, message, extra)
 Create an instance of the exception with one additional parameter. More...
 
#define NCBI_EXCEPTION2(exception_class, err_code, message, extra)
 Generic macro to make an exception with one additional parameter, given the exception class, error code and message string. More...
 
#define NCBI_THROW2(exception_class, err_code, message, extra)    throw NCBI_EXCEPTION2(exception_class, err_code, message, extra)
 Throw exception with extra parameter. More...
 
#define NCBI_RETHROW2(prev_exception, exception_class, err_code, message, extra)
 Re-throw exception with extra parameter. More...
 
#define NCBI_EXCEPTION_DEFAULT2(exception_class, base_class, extra_type)
 Define exception default with one additional parameter. More...
 
#define ISNAN_CONSTEXPR
 
#define isnan   bool_isnan
 
#define finite   _finite
 Define value of finite (Is Finite). More...
 

Typedefs

using has_no_output_operator_impl< T >::type = typename is_same< bool, decltype(check< T >(declval< T >()))>::type
 
typedef int CExceptionArgs_Base::TErrCodeVal
 
typedef int CExceptionArgs_Base::TFlags
 
typedef EDiagSev CExceptionArgs_Base::TSeverity
 
typedef void(* FExceptionArgsManip) (CExceptionArgs_Base &)
 
typedef int CException::TErrCode
 
typedef int CException::TFlags
 
typedef const CExceptionCException::TExceptionPtr
 
typedef int CCoreException::TErrCode
 
typedef int CInvalidParamException::TErrCode
 
typedef int(* TErrorCode) (void)
 Define function type for "error code" function. More...
 
typedef const char *(* TErrorStr) (int errnum)
 Define function type for "error str" function. More...
 
typedef int CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::TErrCode
 
typedef CErrnoTemplExceptionEx< TBase, NCBI_NS_NCBI::NcbiErrnoCode, NCBI_NS_NCBI::NcbiErrnoStrCErrnoTemplException< TBase >::CParent
 Parent class type. More...
 
typedef int CErrnoTemplException< TBase >::TErrCode
 
typedef CErrnoTemplExceptionEx< TBase, NCBI_NS_NCBI::CLastErrorAdapt::GetErrCode, NCBI_NS_NCBI::CLastErrorAdapt::GetErrCodeString > CErrnoTemplException_Win< TBase >::CParent
 Parent class type. More...
 
typedef int CErrnoTemplException_Win< TBase >::TErrCode
 

Enumerations

enum  CNcbiError::ECode {
  CNcbiError::eNotSet = -1 , CNcbiError::eSuccess = 0 , CNcbiError::eAddressFamilyNotSupported = EAFNOSUPPORT , CNcbiError::eAddressInUse = EADDRINUSE ,
  CNcbiError::eAddressNotAvailable = EADDRNOTAVAIL , CNcbiError::eAlreadyConnected = EISCONN , CNcbiError::eArgumentListTooLong = E2BIG , CNcbiError::eArgumentOutOfDomain = EDOM ,
  CNcbiError::eBadAddress = EFAULT , CNcbiError::eBadFileDescriptor = EBADF , CNcbiError::eBadMessage = EBADMSG , CNcbiError::eBrokenPipe = EPIPE ,
  CNcbiError::eConnectionAborted = ECONNABORTED , CNcbiError::eConnectionAlreadyInProgress = EALREADY , CNcbiError::eConnectionRefused = ECONNREFUSED , CNcbiError::eConnectionReset = ECONNRESET ,
  CNcbiError::eCrossDeviceLink = EXDEV , CNcbiError::eDestinationAddressRequired = EDESTADDRREQ , CNcbiError::eDeviceOrResourceBusy = EBUSY , CNcbiError::eDirectoryNotEmpty = ENOTEMPTY ,
  CNcbiError::eExecutableFormatError = ENOEXEC , CNcbiError::eFileExists = EEXIST , CNcbiError::eFileTooLarge = EFBIG , CNcbiError::eFilenameTooLong = ENAMETOOLONG ,
  CNcbiError::eFunctionNotSupported = ENOSYS , CNcbiError::eHostUnreachable = EHOSTUNREACH , CNcbiError::eIdentifierRemoved = EIDRM , CNcbiError::eIllegalByteSequence = EILSEQ ,
  CNcbiError::eInappropriateIoControlOperation = ENOTTY , CNcbiError::eInterrupted = EINTR , CNcbiError::eInvalidArgument = EINVAL , CNcbiError::eInvalidSeek = ESPIPE ,
  CNcbiError::eIoError = EIO , CNcbiError::eIsADirectory = EISDIR , CNcbiError::eMessageSize = EMSGSIZE , CNcbiError::eNetworkDown = ENETDOWN ,
  CNcbiError::eNetworkReset = ENETRESET , CNcbiError::eNetworkUnreachable = ENETUNREACH , CNcbiError::eNoBufferSpace = ENOBUFS , CNcbiError::eNoChildProcess = ECHILD ,
  CNcbiError::eNoLink = ENOLINK , CNcbiError::eNoLockAvailable = ENOLCK , CNcbiError::eNoMessage = ENOMSG , CNcbiError::eNoProtocolOption = ENOPROTOOPT ,
  CNcbiError::eNoSpaceOnDevice = ENOSPC , CNcbiError::eNoSuchDeviceOrAddress = ENXIO , CNcbiError::eNoSuchDevice = ENODEV , CNcbiError::eNoSuchFileOrDirectory = ENOENT ,
  CNcbiError::eNoSuchProcess = ESRCH , CNcbiError::eNotADirectory = ENOTDIR , CNcbiError::eNotASocket = ENOTSOCK , CNcbiError::eNotConnected = ENOTCONN ,
  CNcbiError::eNotEnoughMemory = ENOMEM , CNcbiError::eNotSupported = ENOTSUP , CNcbiError::eOperationCanceled = ECANCELED , CNcbiError::eOperationInProgress = EINPROGRESS ,
  CNcbiError::eOperationNotPermitted = EPERM , CNcbiError::eOperationNotSupported = EOPNOTSUPP , CNcbiError::eOperationWouldBlock = EWOULDBLOCK , CNcbiError::ePermissionDenied = EACCES ,
  CNcbiError::eProtocolError = EPROTO , CNcbiError::eProtocolNotSupported = EPROTONOSUPPORT , CNcbiError::eReadOnlyFileSystem = EROFS , CNcbiError::eResourceDeadlockWouldOccur = EDEADLK ,
  CNcbiError::eResourceUnavailableTryAgain = EAGAIN , CNcbiError::eResultOutOfRange = ERANGE , CNcbiError::eTextFileBusy = ETXTBSY , CNcbiError::eTimedOut = ETIMEDOUT ,
  CNcbiError::eTooManyFilesOpenInSystem = ENFILE , CNcbiError::eTooManyFilesOpen = EMFILE , CNcbiError::eTooManyLinks = EMLINK , CNcbiError::eTooManySymbolicLinkLevels = ELOOP ,
  CNcbiError::eValueTooLarge = EOVERFLOW , CNcbiError::eWrongProtocolType = EPROTOTYPE , CNcbiError::eUnknown = 0x1000
}
 
enum  CNcbiError::ECategory { CNcbiError::eGeneric = 0 , CNcbiError::eNcbi = 1 , CNcbiError::eMsWindows = 2 }
 Error code category. More...
 
enum  CException::EErrCode { CException::eInvalid = -1 , CException::eUnknown = 0 }
 Error types that an application can generate. More...
 
enum  CException::EFlags { CException::fConsole = (1 << 0) }
 Miscellaneous generic hints, flags and attributes. More...
 
enum  CCoreException::EErrCode {
  CCoreException::eCore , CCoreException::eNullPtr , CCoreException::eDll , CCoreException::eDiagFilter ,
  CCoreException::eInvalidArg
}
 Error types that corelib can generate. More...
 
enum  CInvalidParamException::EErrCode { CInvalidParamException::eUndefined = 1 , CInvalidParamException::eInvalidCharacter }
 
enum  CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::EErrCode { CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::eErrno }
 Error type that an application can generate. More...
 

Functions

ECode CNcbiError::Code (void) const
 Get error code. More...
 
ECategory CNcbiError::Category (void) const
 Get error code category. More...
 
int CNcbiError::Native (void) const
 Get native numeric value of the error. More...
 
const stringCNcbiError::Extra (void) const
 Get string information provided when this error was set. More...
 
 CNcbiError::CNcbiError (const CNcbiError &err)
 Copy constructor. More...
 
 CNcbiError::~CNcbiError (void)
 
CNcbiErrorCNcbiError::operator= (const CNcbiError &err)
 Assignment. More...
 
bool CNcbiError::operator== (ECode err) const
 Comparison. More...
 
 CNcbiError::DECLARE_OPERATOR_BOOL (Code() !=eSuccess)
 Operator bool: returns TRUE if error was not set to "success". More...
 
static const CNcbiErrorCNcbiError::GetLast (void)
 Get the error that was last set (in the current thread) More...
 
static void CNcbiError::Set (ECode code)
 Set last error using native error code enum. More...
 
static void CNcbiError::Set (ECode code, const CTempString extra)
 Set last error using native error code enum. More...
 
static void CNcbiError::Set (ECode code, const char *extra)
 Set last error using native error code enum. More...
 
static void CNcbiError::Set (ECode code, const string &extra)
 Set last error using native error code enum. More...
 
static void CNcbiError::Set (ECode code, string &&extra)
 Set last error using native error code enum. More...
 
static void CNcbiError::SetErrno (int errno_code)
 Set last error using errno code. More...
 
static void CNcbiError::SetErrno (int errno_code, const CTempString extra)
 Set last error using errno code. More...
 
static void CNcbiError::SetErrno (int errno_code, const string &extra)
 Set last error using errno code. More...
 
static void CNcbiError::SetErrno (int errno_code, const char *extra)
 Set last error using errno code. More...
 
static void CNcbiError::SetErrno (int errno_code, string &&extra)
 Set last error using errno code. More...
 
static void CNcbiError::SetFromErrno (void)
 Set last error using current "errno" code. More...
 
static void CNcbiError::SetFromErrno (const CTempString extra)
 Set last error using current "errno" code. More...
 
static void CNcbiError::SetFromErrno (const string &extra)
 Set last error using current "errno" code. More...
 
static void CNcbiError::SetFromErrno (const char *extra)
 Set last error using current "errno" code. More...
 
static void CNcbiError::SetFromErrno (string &&extra)
 Set last error using current "errno" code. More...
 
static void CNcbiError::SetWindowsError (int native_err_code)
 Set last error using Windows-specific error code. More...
 
static void CNcbiError::SetWindowsError (int native_err_code, const CTempString extra)
 Set last error using Windows-specific error code. More...
 
static void CNcbiError::SetWindowsError (int native_err_code, const string &extra)
 Set last error using Windows-specific error code. More...
 
static void CNcbiError::SetWindowsError (int native_err_code, const char *extra)
 Set last error using Windows-specific error code. More...
 
static void CNcbiError::SetWindowsError (int native_err_code, string &&extra)
 Set last error using Windows-specific error code. More...
 
static void CNcbiError::SetFromWindowsError (void)
 Set last error on MS Windows using GetLastError() More...
 
static void CNcbiError::SetFromWindowsError (const CTempString extra)
 Set last error on MS Windows using GetLastError() More...
 
static void CNcbiError::SetFromWindowsError (const string &extra)
 Set last error on MS Windows using GetLastError() More...
 
static void CNcbiError::SetFromWindowsError (const char *extra)
 Set last error on MS Windows using GetLastError() More...
 
static void CNcbiError::SetFromWindowsError (string &&extra)
 Set last error on MS Windows using GetLastError() More...
 
 CNcbiError::CNcbiError (void)
 
static CNcbiErrorCNcbiError::x_Init (int err_code)
 
template<class Ty >
static CNcbiErrorCNcbiError::x_Init (int err_code, Ty extra)
 
static void CNcbiError::x_SetWindowsCodeCategory (CNcbiError *e)
 
CNcbiOstreamoperator<< (CNcbiOstream &str, const CNcbiError &err)
 Serialize error code + description provided by OS + extra string data. More...
 
void SetThrowTraceAbort (bool abort_on_throw_trace)
 Specify whether to call "abort()" inside the DoThrowTraceAbort(). More...
 
void DoThrowTraceAbort (void)
 "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW. More...
 
void DoDbgPrint (const CDiagCompileInfo &info, const char *message)
 Print the specified debug message. More...
 
void DoDbgPrint (const CDiagCompileInfo &info, const string &message)
 Print the specified debug message. More...
 
void DoDbgPrint (const CDiagCompileInfo &info, const char *msg1, const char *msg2)
 Print the specified debug messages. More...
 
 BEGIN_NAMESPACE (ncbi_throw_trace)
 
template<class V >
static auto has_no_output_operator_impl< T >::check (const V &) -> decltype(declval< ostream & >()<< declval< V >())
 
template<typename >
static bool has_no_output_operator_impl< T >::check (...)
 
 END_NAMESPACE (ncbi_throw_trace)
 
template<class T >
enable_if< ncbi_throw_trace::is_exception< T >::value, const T & >::type DbgPrintEx (const CDiagCompileInfo &info, const T &t, const char *str)
 
char * DbgPrintEx (const CDiagCompileInfo &info, char *str, const char *)
 
const char * DbgPrintEx (const CDiagCompileInfo &info, const char *str, const char *)
 
const stringDbgPrintEx (const CDiagCompileInfo &info, const string &str, const char *)
 
template<typename T >
const TDbgPrint (const CDiagCompileInfo &info, const T &e, const char *e_str)
 Templated function for printing debug message. More...
 
const char * DbgPrint (const CDiagCompileInfo &info, const char *e, const char *)
 Print debug message for "const char*" object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW. More...
 
char * DbgPrint (const CDiagCompileInfo &info, char *e, const char *)
 Print debug message for "char*" object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW. More...
 
const stringDbgPrint (const CDiagCompileInfo &info, const string &e, const char *)
 Print debug message for "std::string" object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW. More...
 
template<typename T >
const TDbgPrintP (const CDiagCompileInfo &info, const T &e, const char *e_str)
 Print the specified printable object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW. More...
 
template<typename T >
const TDbgPrintNP (const CDiagCompileInfo &info, const T &e, const char *e_str)
 Create diagnostic stream for printing specified message and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW. More...
 
 CExceptionArgs_Base::CExceptionArgs_Base (void)
 
void CExceptionArgs_Base::SetErrCodeVal (TErrCodeVal err_code)
 
TErrCodeVal CExceptionArgs_Base::GetErrCodeVal (void) const
 
void CExceptionArgs_Base::SetFlags (TFlags flags)
 
TFlags CExceptionArgs_Base::GetFlags (void) const
 
void CExceptionArgs_Base::SetSeverity (TSeverity severity)
 
TSeverity CExceptionArgs_Base::GetSeverity (void) const
 
void CExceptionArgs_Base::SetModule (const string &module)
 
const stringCExceptionArgs_Base::GetModule (void) const
 
bool CExceptionArgs_Base::IsSetModule (void) const
 
void CExceptionArgs_Base::SetRetriable (ERetriable retriable)
 
ERetriable CExceptionArgs_Base::GetRetriable (void) const
 
virtual CExceptionArgsManip::~CExceptionArgsManip (void)
 
virtual void CExceptionArgsManip::operator() (CExceptionArgs_Base &args) const =0
 
 CExceptionArgsManip_Wrapper::CExceptionArgsManip_Wrapper (FExceptionArgsManip f)
 
void CExceptionArgsManip_Wrapper::operator() (CExceptionArgs_Base &args) const
 
 CExceptionArgs< TErrCode >::CExceptionArgs (TErrCode err_code)
 
TErrCode CExceptionArgs< TErrCode >::GetErrCode (void) const
 
CExceptionArgs< TErrCode > & CExceptionArgs< TErrCode >::operator| (const CExceptionArgsManip &manip)
 
CExceptionArgs< TErrCode > & CExceptionArgs< TErrCode >::operator| (const CExceptionArgsManip_Wrapper &manip)
 
 CException::CException (const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, EDiagSev severity=eDiag_Error, TFlags flags=0)
 Constructor. More...
 
 CException::CException (const CDiagCompileInfo &info, const CException *prev_exception, const CExceptionArgs< EErrCode > &args, const string &message)
 
 CException::CException (const CException &other)
 Copy constructor. More...
 
void CException::AddBacklog (const CDiagCompileInfo &info, const string &message, EDiagSev severity=eDiag_Error)
 Add a message to backlog (to re-throw the same exception then). More...
 
void CException::AddPrevious (const CException *prev_exception)
 
void CException::AddToMessage (const string &add_msg)
 
virtual void CException::Throw (void) const
 Polymorphically (re)throw an exception whose exact type is uncertain. More...
 
virtual const char * CException::what (void) const noexcept
 Standard report (includes full backlog). More...
 
void CException::Report (const CDiagCompileInfo &info, const string &title, CExceptionReporter *reporter=0, TDiagPostFlags flags=eDPF_Exception) const
 Report the exception. More...
 
string CException::ReportThis (TDiagPostFlags flags=eDPF_Exception) const
 Report this exception only. More...
 
string CException::ReportAll (TDiagPostFlags flags=eDPF_Exception) const
 Report all exceptions. More...
 
void CException::ReportStd (ostream &out, TDiagPostFlags flags=eDPF_Exception) const
 Report "standard" attributes. More...
 
virtual void CException::ReportExtra (ostream &out) const
 Report "non-standard" attributes. More...
 
const CStackTraceCException::GetStackTrace (void) const
 Get the saved stack trace if available or NULL. More...
 
static bool CException::EnableBackgroundReporting (bool enable)
 Enable background reporting. More...
 
static void CException::SetStackTraceLevel (EDiagSev level)
 Set severity level for saving and printing stack trace. More...
 
static EDiagSev CException::GetStackTraceLevel (void)
 Get current severity level for saving and printing stack trace. More...
 
EDiagSev CException::GetSeverity (void) const
 Get exception severity. More...
 
CExceptionCException::SetSeverity (EDiagSev severity)
 Set exception severity. More...
 
virtual const char * CException::GetType (void) const
 Get class name as a string. More...
 
virtual const char * CException::GetErrCodeString (void) const
 Get error code interpreted as text. More...
 
const stringCException::GetFile (void) const
 Get file name used for reporting. More...
 
void CException::SetModule (const string &module)
 Set module name used for reporting. More...
 
const stringCException::GetModule (void) const
 Get module name used for reporting. More...
 
void CException::SetClass (const string &nclass)
 Set class name used for reporting. More...
 
const stringCException::GetClass (void) const
 Get class name used for reporting. More...
 
void CException::SetFunction (const string &function)
 Set function name used for reporting. More...
 
const stringCException::GetFunction (void) const
 Get function name used for reporting. More...
 
int CException::GetLine (void) const
 Get line number where error occurred. More...
 
TErrCode CException::GetErrCode (void) const
 Get error code. More...
 
const stringCException::GetMsg (void) const
 Get message string. More...
 
const CExceptionCException::GetPredecessor (void) const
 Get "previous" exception from the backlog. More...
 
bool CException::HasMainText (void) const
 Check if exception has main text in the chain. More...
 
virtual CException::~CException (void) noexcept
 Destructor. More...
 
bool CException::IsSetFlag (EFlags flag) const
 Check if the flag is set. More...
 
CExceptionCException::SetFlag (EFlags flag)
 Set flag (add to other flags) More...
 
CExceptionCException::UnsetFlag (EFlags flag)
 Unset flag (other flags are left as is) More...
 
CRequestContextCException::GetRequestContext (void) const
 Get the request context in which the exception was thrown. More...
 
void CException::SetRetriable (ERetriable retriable)
 Set the info about ability to retry an action caused the exception. More...
 
virtual ERetriable CException::GetRetriable (void) const
 Retrieve info about ability to retry an action caused the exception. More...
 
 CException::CException (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, EDiagSev severity=eDiag_Error, TFlags flags=0)
 Constructor for derived classes. More...
 
 CException::CException (void)
 Constructor with no arguments. More...
 
virtual void CException::x_ReportToDebugger (void) const
 Helper method for reporting to the system debugger. More...
 
virtual const CExceptionCException::x_Clone (void) const
 Helper method for cloning the exception. More...
 
virtual void CException::x_Init (const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity)
 Helper method for initializing exception data. More...
 
virtual void CException::x_InitArgs (const CExceptionArgs_Base &args)
 Process additional arguments. More...
 
virtual void CException::x_Assign (const CException &src)
 Helper method for copying exception data. More...
 
virtual void CException::x_AssignErrCode (const CException &src)
 Helper method for assigning error code. More...
 
virtual void CException::x_InitErrCode (CException::EErrCode err_code)
 Helper method for initializing error code. More...
 
virtual int CException::x_GetErrCode (void) const
 Helper method for getting error code. More...
 
void CException::x_GetStackTrace (void)
 Get and store current stack trace. More...
 
void CException::x_ThrowSanityCheck (const type_info &expected_type, const char *human_name) const
 Warn if Throw() will end up slicing its invocant. More...
 
CExceptionCException::operator= (const CException &)
 Private assignment operator to prohibit assignment. More...
 
template<class TErrCode >
CExceptionArgs< TErrCode > operator| (TErrCode err_code, const CExceptionArgsManip &manip)
 Exception manipulators. Can be combined with error code using operator|(). More...
 
template<class TErrCode >
CExceptionArgs< TErrCode > operator| (TErrCode err_code, const CExceptionArgsManip_Wrapper &manip)
 
void Console (CExceptionArgs_Base &args)
 
void Trace (CExceptionArgs_Base &args)
 
void Info (CExceptionArgs_Base &args)
 
void Warning (CExceptionArgs_Base &args)
 
void Error (CExceptionArgs_Base &args)
 
void Critical (CExceptionArgs_Base &args)
 
void Fatal (CExceptionArgs_Base &args)
 
 Module::Module (const string &module)
 
 Module::Module (const char *module)
 
virtual Module::~Module (void)
 
virtual void Module::operator() (CExceptionArgs_Base &args) const
 
 Retriable::Retriable (ERetriable retriable)
 
virtual Retriable::~Retriable (void)
 
virtual void Retriable::operator() (CExceptionArgs_Base &args) const
 
template<class TTo , class TFrom >
const TTo * UppermostCast (const TFrom &from)
 Return valid pointer to uppermost derived class only if "from" is _really_ the object of the desired type. More...
 
 CExceptionReporter::CExceptionReporter (void)
 Constructor. More...
 
virtual CExceptionReporter::~CExceptionReporter (void)
 Destructor. More...
 
static void CExceptionReporter::SetDefault (const CExceptionReporter *handler)
 Set default reporter. More...
 
static const CExceptionReporterCExceptionReporter::GetDefault (void)
 Get default reporter. More...
 
static bool CExceptionReporter::EnableDefault (bool enable)
 Enable/disable using default reporter. More...
 
static void CExceptionReporter::ReportDefault (const CDiagCompileInfo &info, const string &title, const std::exception &ex, TDiagPostFlags flags=eDPF_Exception)
 Report exception using default reporter. More...
 
static void CExceptionReporter::ReportDefaultEx (int err_code, int err_subcode, const CDiagCompileInfo &info, const string &title, const std::exception &ex, TDiagPostFlags flags=eDPF_Exception)
 Report exception using default reporter and particular error code and subcode when writing to diagnostics. More...
 
virtual void CExceptionReporter::Report (const char *file, int line, const string &title, const CException &ex, TDiagPostFlags flags=eDPF_Exception) const =0
 Report CException with _this_ reporter. More...
 
 CExceptionReporterStream::CExceptionReporterStream (ostream &out)
 Constructor. More...
 
virtual CExceptionReporterStream::~CExceptionReporterStream (void)
 Destructor. More...
 
virtual void CExceptionReporterStream::Report (const char *file, int line, const string &title, const CException &ex, TDiagPostFlags flags=eDPF_Exception) const
 Report specified exception on output stream. More...
 
virtual const char * CCoreException::GetErrCodeString (void) const override
 Translate from the error code value to its string representation. More...
 
 CCoreException::CCoreException (const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, EDiagSev severity=eDiag_Error)
 
 CCoreException::CCoreException (const CDiagCompileInfo &info, const CException *prev_exception, const CExceptionArgs< EErrCode > &args, const string &message)
 
 CCoreException::CCoreException (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, EDiagSev severity, CException::TFlags flags)
 
 CCoreException::CCoreException (const CCoreException &other)
 
virtual CCoreException::~ CCoreException (void) noexcept
 
virtual const char * CCoreException::GetType (void) const override
 Get class name as a string. More...
 
TErrCode CCoreException::GetErrCode (void) const
 
virtual void CCoreException::Throw (void) const override
 Polymorphically (re)throw an exception whose exact type is uncertain. More...
 
 CCoreException::CCoreException (void)
 
virtual const CExceptionCCoreException::x_Clone (void) const override
 Helper method for cloning the exception. More...
 
static void CCoreException::xx_unused_CCoreException (void)
 
virtual const char * CInvalidParamException::GetErrCodeString (void) const override
 Translate from an error code value to its string representation. More...
 
 CInvalidParamException::CInvalidParamException (const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, EDiagSev severity=eDiag_Error)
 
 CInvalidParamException::CInvalidParamException (const CDiagCompileInfo &info, const CException *prev_exception, const CExceptionArgs< EErrCode > &args, const string &message)
 
 CInvalidParamException::CInvalidParamException (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, EDiagSev severity, CException::TFlags flags)
 
 CInvalidParamException::CInvalidParamException (const CInvalidParamException &other)
 
virtual CInvalidParamException::~ CInvalidParamException (void) noexcept
 
virtual const char * CInvalidParamException::GetType (void) const override
 Get class name as a string. More...
 
TErrCode CInvalidParamException::GetErrCode (void) const
 
virtual void CInvalidParamException::Throw (void) const override
 Polymorphically (re)throw an exception whose exact type is uncertain. More...
 
 CInvalidParamException::CInvalidParamException (void)
 
virtual const CExceptionCInvalidParamException::x_Clone (void) const override
 Helper method for cloning the exception. More...
 
static void CInvalidParamException::xx_unused_CInvalidParamException (void)
 
const char * Ncbi_strerror (int errnum)
 
int NcbiErrnoCode (void)
 
const char * NcbiErrnoStr (int errnum)
 
static int CLastErrorAdapt::GetErrCode (void)
 
static const char * CLastErrorAdapt::GetErrCodeString (int errnum)
 
virtual const char * CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrCodeString (void) const override
 Translate from the error code value to its string representation. More...
 
 CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::CErrnoTemplExceptionEx (const CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr > &other)
 Copy constructor. More...
 
virtual CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::~CErrnoTemplExceptionEx (void) noexcept
 Destructor. More...
 
virtual void CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::ReportExtra (ostream &out) const override
 Report error number on stream. More...
 
virtual const char * CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetType (void) const override
 Get type of class. More...
 
TErrCode CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrCode (void) const
 Get error code. More...
 
int CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrno (void) const noexcept
 Get error number. More...
 
 CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::CErrnoTemplExceptionEx (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, int errnum, EDiagSev severity=eDiag_Error, CException::TFlags flags=0)
 Constructor (with errno only). More...
 
 CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::CErrnoTemplExceptionEx (void)
 Default constructor. More...
 
virtual const CExceptionCErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::x_Clone (void) const override
 Helper clone method. More...
 
 CErrnoTemplException< TBase >::CErrnoTemplException (const CDiagCompileInfo &info, const CException *prev_exception, typename CParent::EErrCode err_code, const string &message, EDiagSev severity=eDiag_Error)
 Constructor. More...
 
 CErrnoTemplException< TBase >::CErrnoTemplException (const CErrnoTemplException &other)
 
virtual CErrnoTemplException< TBase >::~ CErrnoTemplException (void) noexcept
 
virtual const char * CErrnoTemplException< TBase >::GetType (void) const override
 Get type of class. More...
 
TErrCode CErrnoTemplException< TBase >::GetErrCode (void) const
 
virtual void CErrnoTemplException< TBase >::Throw (void) const override
 
 CErrnoTemplException< TBase >::CErrnoTemplException (void)
 
virtual const CExceptionCErrnoTemplException< TBase >::x_Clone (void) const override
 Helper clone method. More...
 
virtual const char * CErrnoTemplException< TBase >::GetErrCodeString (void) const override
 Translate from the error code value to its string representation. More...
 
 CErrnoTemplException< TBase >::CErrnoTemplException (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, EDiagSev severity, CException::TFlags flags)
 
 CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win (const CDiagCompileInfo &info, const CException *prev_exception, typename CParent::EErrCode err_code, const string &message, EDiagSev severity=eDiag_Error)
 Constructor. More...
 
 CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win (const CErrnoTemplException_Win &other)
 
virtual CErrnoTemplException_Win< TBase >::~ CErrnoTemplException_Win (void) noexcept
 
virtual const char * CErrnoTemplException_Win< TBase >::GetType (void) const override
 Get type of class. More...
 
TErrCode CErrnoTemplException_Win< TBase >::GetErrCode (void) const
 
virtual void CErrnoTemplException_Win< TBase >::Throw (void) const override
 
 CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win (void)
 
virtual const CExceptionCErrnoTemplException_Win< TBase >::x_Clone (void) const override
 Helper clone method. More...
 
virtual const char * CErrnoTemplException_Win< TBase >::GetErrCodeString (void) const override
 Translate from the error code value to its string representation. More...
 
 CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, EDiagSev severity, CException::TFlags flags)
 
bool std::bool_isnan (float x)
 
bool std::bool_isnan (double x)
 
bool std::bool_isnan (long double x)
 

Variables

ECode CNcbiError::m_Code
 
ECategory CNcbiError::m_Category
 
int CNcbiError::m_Native
 
string CNcbiError::m_Extra
 
TErrCodeVal CExceptionArgs_Base::m_ErrCode
 
TFlags CExceptionArgs_Base::m_Flags
 
TSeverity CExceptionArgs_Base::m_Severity
 
string CExceptionArgs_Base::m_Module
 
ERetriable CExceptionArgs_Base::m_Retriable
 
FExceptionArgsManip CExceptionArgsManip_Wrapper::m_Func
 
EDiagSev CException::m_Severity
 Severity level for the exception. More...
 
string CException::m_File
 File to report on. More...
 
int CException::m_Line
 Line number. More...
 
int CException::m_ErrCode
 Error code. More...
 
string CException::m_Msg
 Message string. More...
 
string CException::m_Module
 Module to report on. More...
 
string CException::m_Class
 Class to report on. More...
 
string CException::m_Function
 Function to report on. More...
 
string CException::m_What
 What type of exception. More...
 
TExceptionPtr CException::m_Predecessor
 Previous exception. More...
 
bool CException::m_InReporter
 Reporter flag. More...
 
bool CException::m_MainText
 Exception has main text. More...
 
static bool CException::sm_BkgrEnabled = false
 Background reporting enabled flag. More...
 
unique_ptr< CStackTraceCException::m_StackTrace
 Saved stack trace. More...
 
TFlags CException::m_Flags
 Flags, hints, attributes. More...
 
ERetriable CException::m_Retriable
 In some cases it is known for sure if an action caused the exception can be tried again or not. More...
 
unique_ptr< CRequestContextRefCException::m_RequestContext
 
string Module::m_Module
 
ERetriable Retriable::m_Retriable
 
static const CExceptionReporterCExceptionReporter::sm_DefHandler = 0
 Default handler. More...
 
static bool CExceptionReporter::sm_DefEnabled = true
 Default enable flag. More...
 
ostream & CExceptionReporterStream::m_Out
 Output stream. More...
 
int CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::m_Errno
 Error number. More...
 

Detailed Description

Macro Definition Documentation

◆ ABORT_ON_THROW

#define ABORT_ON_THROW   "ABORT_ON_THROW"

ABORT_ON_THROW controls if program should be aborted.

Definition at line 80 of file ncbiexpt.hpp.

◆ EXCEPTION_VIRTUAL_BASE

#define EXCEPTION_VIRTUAL_BASE

Do not use virtual base classes in exception declaration at all, because in this case derived class should initialize all base classes directly, that is not convenient and hard to control.

Deprecated:
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 1388 of file ncbiexpt.hpp.

◆ finite

#define finite   _finite

Define value of finite (Is Finite).

Checks whether given double-precision floating point value is finite

Definition at line 109 of file ncbifloat.h.

◆ FORMAT

#define FORMAT (   message)     NCBI_NS_NCBI::CNcbiOstrstreamToString(static_cast<NCBI_NS_NCBI::CNcbiOstrstream&>(NCBI_NS_NCBI::CNcbiOstrstream().flush() << message))

Format message using iostreams library.

This macro returns an object convertible to std::string.

Definition at line 672 of file ncbiexpt.hpp.

◆ isnan

#define isnan   bool_isnan

Definition at line 89 of file ncbifloat.h.

◆ ISNAN_CONSTEXPR

#define ISNAN_CONSTEXPR

Definition at line 76 of file ncbifloat.h.

◆ NCBI_CATCH

#define NCBI_CATCH (   message)
Value:
catch (NCBI_NS_NCBI::CException& e) { \
NCBI_REPORT_EXCEPTION(message, e); \
} \
STD_CATCH(message)

Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.

Definition at line 580 of file ncbiexpt.hpp.

◆ NCBI_CATCH_ALL

#define NCBI_CATCH_ALL (   message)
Value:
catch (NCBI_NS_NCBI::CException& e) { \
NCBI_REPORT_EXCEPTION(message, e); \
} \
STD_CATCH_ALL(message)

This macro is deprecated - use *_X or *_XX variant instead of it.

Definition at line 587 of file ncbiexpt.hpp.

◆ NCBI_CATCH_ALL_X

#define NCBI_CATCH_ALL_X (   err_subcode,
  message 
)     NCBI_CATCH_ALL_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
See also
STD_CATCH_ALL_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_X

Definition at line 619 of file ncbiexpt.hpp.

◆ NCBI_CATCH_ALL_XX

#define NCBI_CATCH_ALL_XX (   err_name,
  err_subcode,
  message 
)
Value:
catch (NCBI_NS_NCBI::CException& e) { \
NCBI_REPORT_EXCEPTION_XX(err_name, err_subcode, message, e); \
} \
STD_CATCH_ALL_XX(err_name, err_subcode, message)
See also
STD_CATCH_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_XX

Definition at line 660 of file ncbiexpt.hpp.

◆ NCBI_CATCH_X

#define NCBI_CATCH_X (   err_subcode,
  message 
)     NCBI_CATCH_XX(NCBI_USE_ERRCODE_X, err_subcode, message)

Catch CExceptions as well with default error code and given error subcode placed in diagnostics.

See also
STD_CATCH_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_X

Definition at line 615 of file ncbiexpt.hpp.

◆ NCBI_CATCH_XX

#define NCBI_CATCH_XX (   err_name,
  err_subcode,
  message 
)
Value:
catch (NCBI_NS_NCBI::CException& e) { \
NCBI_REPORT_EXCEPTION_XX(err_name, err_subcode, message, e); \
} \
STD_CATCH_XX(err_name, err_subcode, message)

Catch CExceptions as well with given error code name and given error subcode placed in diagnostics.

See also
STD_CATCH_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_XX

Definition at line 653 of file ncbiexpt.hpp.

◆ NCBI_ERRNO_CODE_WRAPPER

#define NCBI_ERRNO_CODE_WRAPPER   NCBI_NS_NCBI::NcbiErrnoCode

Definition at line 1529 of file ncbiexpt.hpp.

◆ NCBI_ERRNO_STR_WRAPPER

#define NCBI_ERRNO_STR_WRAPPER   NCBI_NS_NCBI::NcbiErrnoStr

Definition at line 1530 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION

#define NCBI_EXCEPTION (   exception_class,
  err_code,
  message 
)
Value:
exception_class, err_code, message)
#define NCBI_EXCEPTION_VAR(name, exception_class, err_code, message)
Create an instance of the exception to be thrown later.
Definition: ncbiexpt.hpp:684
#define NCBI_EXCEPTION_EMPTY_NAME
Definition: ncbiexpt.hpp:691

Generic macro to make an exception, given the exception class, error code and message string.

Definition at line 695 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION2

#define NCBI_EXCEPTION2 (   exception_class,
  err_code,
  message,
  extra 
)
Value:
exception_class, err_code, message, extra)
#define NCBI_EXCEPTION2_VAR(name, exception_class, err_code, message, extra)
Create an instance of the exception with one additional parameter.
Definition: ncbiexpt.hpp:1740

Generic macro to make an exception with one additional parameter, given the exception class, error code and message string.

Definition at line 1746 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION2_VAR

#define NCBI_EXCEPTION2_VAR (   name,
  exception_class,
  err_code,
  message,
  extra 
)
Value:
exception_class name(DIAG_COMPILE_INFO, 0, \
exception_class::err_code, (message), (extra) )
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:170

Create an instance of the exception with one additional parameter.

Definition at line 1740 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT

#define NCBI_EXCEPTION_DEFAULT (   exception_class,
  base_class 
)

To help declare new exception class.

This can be used ONLY if the derived class does not have any additional (non-standard) data members.

Examples
/home/coremake/doxygen/cxx/include/corelib/interprocess_lock.hpp.

Definition at line 1315 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT2

#define NCBI_EXCEPTION_DEFAULT2 (   exception_class,
  base_class,
  extra_type 
)
Value:
public: \
exception_class(const CDiagCompileInfo &info, \
const CException* prev_exception, \
EErrCode err_code,const string& message, \
extra_type extra_param, EDiagSev severity = eDiag_Error) \
: base_class(info, prev_exception, \
(message), extra_param, severity, 0) \
NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION(exception_class, base_class)
Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function.
Definition: ncbidiag.hpp:65
EDiagSev
Severity level for the posted diagnostics.
Definition: ncbidiag.hpp:650
@ eDiag_Error
Error message.
Definition: ncbidiag.hpp:653
static MDB_envinfo info
Definition: mdb_load.c:37

Define exception default with one additional parameter.

Required to define exception default with one additional parameter (e.g. derived from CParseException).

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 1770 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION

#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION (   exception_class,
  base_class 
)
Value:
{ \
x_Init(info, message, prev_exception, severity); \
x_InitErrCode((CException::EErrCode) err_code); \
} \
NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON(exception_class, base_class) \
private: \
/* for the sake of semicolon at the end of macro...*/ \
static void xx_unused_##exception_class(void)
EErrCode
Error types that an application can generate.
Definition: ncbiexpt.hpp:884

Helper macro for default exception implementation.

See also
NCBI_EXCEPTION_DEFAULT

Definition at line 1300 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON

#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON (   exception_class,
  base_class 
)
Value:
exception_class(const exception_class& other) \
: base_class(other) \
{ \
this->x_Assign(other); \
} \
public: \
virtual ~exception_class(void) noexcept {} \
virtual const char* GetType(void) const override {return #exception_class;} \
typedef int TErrCode; \
TErrCode GetErrCode(void) const \
{ \
return typeid(*this) == typeid(exception_class) ? \
(TErrCode) this->x_GetErrCode() : \
(TErrCode) CException::eInvalid; \
} \
NCBI_EXCEPTION_DEFAULT_THROW(exception_class) \
protected: \
exception_class(void) {} \
virtual const CException* x_Clone(void) const override \
{ \
return new exception_class(*this); \
} \

Definition at line 1272 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL

#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL (   exception_class,
  base_class 
)
Value:
{ \
this->x_Init(info, message, prev_exception, severity); \
this->x_InitErrCode((typename CException::EErrCode) err_code); \
} \
NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON(exception_class, base_class)

Helper macro added to support templatized exceptions.

GCC starting from 3.2.2 warns about implicit typenames - this macro fixes the warning.

Definition at line 1356 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL_ERRNO

#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL_ERRNO (   exception_class,
  base_class 
)
Value:
{ \
this->x_Init(info, message, prev_exception, severity); \
this->x_InitErrCode((typename CException::EErrCode) err_code); \
} \
NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON(exception_class, base_class) \
public: \
virtual const char* GetErrCodeString(void) const override \
{ \
switch (GetErrCode()) { \
case CParent::eErrno: return "eErrno"; \
default: return CException::GetErrCodeString(); \
} \
}
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
Definition: ncbiexpt.cpp:444

Helper macro added to support errno based templatized exceptions.

Definition at line 1365 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_DEFAULT_THROW

#define NCBI_EXCEPTION_DEFAULT_THROW (   exception_class)
Value:
NCBI_NORETURN virtual void Throw(void) const override \
{ \
this->x_ThrowSanityCheck(typeid(exception_class), #exception_class); \
throw *this; \
}

Definition at line 1265 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_EMPTY_NAME

#define NCBI_EXCEPTION_EMPTY_NAME

Definition at line 691 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_EX

#define NCBI_EXCEPTION_EX (   prev_exception,
  exception_class,
  err_code,
  message 
)
Value:
exception_class, err_code, message)
#define NCBI_EXCEPTION_VAR_EX(name, prev_exception_ptr, exception_class, err_code, message)
Create an exception instance to be thrown later, given the exception class, previous exception pointe...
Definition: ncbiexpt.hpp:678

Generic macro to make an exception, given the exception class, previous exception, error code and message string.

Definition at line 729 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_THROW

#define NCBI_EXCEPTION_THROW (   exception_var)     throw (exception_var)

Throw an existing exception object.

Definition at line 688 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_VAR

#define NCBI_EXCEPTION_VAR (   name,
  exception_class,
  err_code,
  message 
)     NCBI_EXCEPTION_VAR_EX(name, 0, exception_class, err_code, message)

Create an instance of the exception to be thrown later.

Definition at line 684 of file ncbiexpt.hpp.

◆ NCBI_EXCEPTION_VAR_EX

#define NCBI_EXCEPTION_VAR_EX (   name,
  prev_exception_ptr,
  exception_class,
  err_code,
  message 
)
Value:
exception_class name(DIAG_COMPILE_INFO, \
prev_exception_ptr, exception_class::err_code, (message))

Create an exception instance to be thrown later, given the exception class, previous exception pointer, error code and message string.

Definition at line 678 of file ncbiexpt.hpp.

◆ NCBI_LASTERROR_CODE_WRAPPER

#define NCBI_LASTERROR_CODE_WRAPPER    NCBI_NS_NCBI::CLastErrorAdapt::GetErrCode

Definition at line 1555 of file ncbiexpt.hpp.

◆ NCBI_LASTERROR_STR_WRAPPER

#define NCBI_LASTERROR_STR_WRAPPER    NCBI_NS_NCBI::CLastErrorAdapt::GetErrCodeString

Definition at line 1557 of file ncbiexpt.hpp.

◆ NCBI_REPORT_EXCEPTION

#define NCBI_REPORT_EXCEPTION (   title,
  ex 
)
Value:
NCBI_NS_NCBI::CExceptionReporter::ReportDefault \
@ eDPF_Default
Use global default flags (merge with).
Definition: ncbidiag.hpp:771

Generate a report on the exception.

Definition at line 755 of file ncbiexpt.hpp.

◆ NCBI_REPORT_EXCEPTION_X

#define NCBI_REPORT_EXCEPTION_X (   err_subcode,
  title,
  ex 
)     NCBI_REPORT_EXCEPTION_XX(NCBI_USE_ERRCODE_X, err_subcode, title, ex)

Generate a report on the exception with default error code and given subcode.

Definition at line 761 of file ncbiexpt.hpp.

◆ NCBI_REPORT_EXCEPTION_XX

#define NCBI_REPORT_EXCEPTION_XX (   err_name,
  err_subcode,
  title,
  ex 
)
Value:
NCBI_CHECK_ERR_SUBCODE_X_NAME(err_name, err_subcode); \
NCBI_NS_NCBI::CExceptionReporter::ReportDefaultEx \
(NCBI_ERRCODE_X_NAME(err_name), err_subcode, \
DIAG_COMPILE_INFO, title, ex, NCBI_NS_NCBI::eDPF_Default)
#define NCBI_CHECK_ERR_SUBCODE_X_NAME(name, subcode)
Issue compile-time error if error subcode given is not valid for given error code name.
Definition: ncbidiag.hpp:452
#define NCBI_ERRCODE_X_NAME(name)
Returns value of error code by its name defined by NCBI_DEFINE_ERRCODE_X.
Definition: ncbidiag.hpp:369

Generate a report on the exception with default error code and given subcode.

Definition at line 766 of file ncbiexpt.hpp.

◆ NCBI_RETHROW

#define NCBI_RETHROW (   prev_exception,
  exception_class,
  err_code,
  message 
)
Value:
do { \
USING_SCOPE(NCBI_NS_NCBI::ncbi_ex_manip); \
throw NCBI_EXCEPTION_EX(prev_exception, exception_class, \
err_code, message); \
} while (0)
#define NCBI_EXCEPTION_EX(prev_exception, exception_class, err_code, message)
Generic macro to make an exception, given the exception class, previous exception,...
Definition: ncbiexpt.hpp:729

Generic macro to re-throw an exception.

The err_code argument may include manipulators to set additional options, e.g. eMyErrCode | Console | Severity(eDiag_Info). In any case the error code value must be the first in the combination.

Definition at line 737 of file ncbiexpt.hpp.

◆ NCBI_RETHROW2

#define NCBI_RETHROW2 (   prev_exception,
  exception_class,
  err_code,
  message,
  extra 
)
Value:
throw exception_class(DIAG_COMPILE_INFO, \
&(prev_exception), exception_class::err_code, (message), (extra))

Re-throw exception with extra parameter.

Required to re-throw exceptions with one additional parameter (e.g. positional information for CParseException).

Definition at line 1761 of file ncbiexpt.hpp.

◆ NCBI_RETHROW_FMT

#define NCBI_RETHROW_FMT (   prev_exception,
  exception_class,
  err_code,
  message 
)     NCBI_RETHROW(prev_exception, exception_class, err_code, FORMAT(message))

The same as NCBI_RETHROW but with message processed as output to ostream.

Definition at line 745 of file ncbiexpt.hpp.

◆ NCBI_RETHROW_SAME

#define NCBI_RETHROW_SAME (   prev_exception,
  message 
)
Value:
do { prev_exception.AddBacklog(DIAG_COMPILE_INFO, message, \
prev_exception.GetSeverity()); \
throw; } while (0)

Generic macro to re-throw the same exception.

Definition at line 749 of file ncbiexpt.hpp.

◆ NCBI_THROW

#define NCBI_THROW (   exception_class,
  err_code,
  message 
)
Value:
do { \
USING_SCOPE(NCBI_NS_NCBI::ncbi_ex_manip); \
NCBI_EXCEPTION_THROW(NCBI_EXCEPTION(exception_class, err_code, \
message)); \
} while (0)
#define NCBI_EXCEPTION(exception_class, err_code, message)
Generic macro to make an exception, given the exception class, error code and message string.
Definition: ncbiexpt.hpp:695

Generic macro to throw an exception, given the exception class, error code and message string.

The err_code argument may include manipulators to set additional options, e.g. eMyErrCode | Console | Severity(eDiag_Info). In any case the error code value must be the first in the combination.

Examples
/home/coremake/doxygen/cxx/include/util/data_histogram.hpp.

Definition at line 704 of file ncbiexpt.hpp.

◆ NCBI_THROW2

#define NCBI_THROW2 (   exception_class,
  err_code,
  message,
  extra 
)     throw NCBI_EXCEPTION2(exception_class, err_code, message, extra)

Throw exception with extra parameter.

Required to throw exceptions with one additional parameter (e.g. positional information for CParseException).

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 1754 of file ncbiexpt.hpp.

◆ NCBI_THROW_FMT

#define NCBI_THROW_FMT (   exception_class,
  err_code,
  message 
)     NCBI_THROW(exception_class, err_code, FORMAT(message))

The same as NCBI_THROW but with message processed as output to ostream.

Definition at line 719 of file ncbiexpt.hpp.

◆ NCBI_USER_THROW

#define NCBI_USER_THROW (   message)     NCBI_THROW(NCBI_NS_NCBI::CException, eUnknown, message)

Throw a quick-and-dirty runtime exception of type 'CException' with the given error message and error code 'eUnknown'.

This macro is intended for use only in stand-alone applications. Library APIs should properly declare their specific exception types.

Definition at line 715 of file ncbiexpt.hpp.

◆ NCBI_USER_THROW_FMT

#define NCBI_USER_THROW_FMT (   message)     NCBI_THROW_FMT(NCBI_NS_NCBI::CException, eUnknown, message)

Throw a "user exception" with message processed as output to ostream.

See NCBI_USER_THROW for details.

Definition at line 724 of file ncbiexpt.hpp.

◆ RETHROW_TRACE

#define RETHROW_TRACE
Value:
do { \
_TRACE("EXCEPTION: re-throw"); \
throw; \
} while(0)
void DoThrowTraceAbort(void)
"abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.
Definition: ncbiexpt.cpp:72

Rethrow trace.

Reason for do {...} while in macro definition is to permit a natural syntax usage when a user wants to write something like:

if (expression) RETHROW_TRACE; else do_something_else;

Example:

  • RETHROW_TRACE;

Definition at line 120 of file ncbiexpt.hpp.

◆ STD_CATCH

#define STD_CATCH (   message)
Value:
catch (NCBI_NS_STD::exception& e) { \
NCBI_NS_NCBI::CNcbiDiag() \
<< "[" << message << "] Exception: " << e.what(); \
}
void Error(CExceptionArgs_Base &args)
Definition: ncbiexpt.hpp:1197

Standard handling of "exception"-derived exceptions.

This macro is deprecated - use *_X or *_XX variant instead of it.

Definition at line 560 of file ncbiexpt.hpp.

◆ STD_CATCH_ALL

#define STD_CATCH_ALL (   message)
Value:
STD_CATCH(message) \
catch (...) { \
NCBI_NS_NCBI::CNcbiDiag() \
<< "[" << message << "] Unknown exception"; \
}
#define STD_CATCH(message)
Standard handling of "exception"-derived exceptions.
Definition: ncbiexpt.hpp:560

Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions.

This macro is deprecated - use *_X or *_XX variant instead of it.

Definition at line 570 of file ncbiexpt.hpp.

◆ STD_CATCH_ALL_X

#define STD_CATCH_ALL_X (   err_subcode,
  message 
)     STD_CATCH_ALL_XX(NCBI_USE_ERRCODE_X, err_subcode, message)

Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions.

With default error code and given error subcode placed in diagnostics

See also
STD_CATCH_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_X

Definition at line 608 of file ncbiexpt.hpp.

◆ STD_CATCH_ALL_XX

#define STD_CATCH_ALL_XX (   err_name,
  err_subcode,
  message 
)
Value:
STD_CATCH_XX(err_name, err_subcode, message) \
catch (...) { \
NCBI_NS_NCBI::CNcbiDiag() \
<< ErrCode(NCBI_ERRCODE_X_NAME(err_name), err_subcode) \
<< "[" << message << "] Unknown exception"; \
}
#define STD_CATCH_XX(err_name, err_subcode, message)
Standard handling of "exception"-derived exceptions with given error code name and given error subcod...
Definition: ncbiexpt.hpp:626
#define ErrCode()
Get the error code for the last failed system function.
Definition: mdb.c:377

Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions.

With given error code name and given error subcode placed in diagnostics

See also
STD_CATCH_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_XX

Definition at line 640 of file ncbiexpt.hpp.

◆ STD_CATCH_X

#define STD_CATCH_X (   err_subcode,
  message 
)     STD_CATCH_XX(NCBI_USE_ERRCODE_X, err_subcode, message)

Standard handling of "exception"-derived exceptions with default error code and given error subcode placed in diagnostics.

Default error code is used and error subcode checking for correctness is made in same way as in ERR_POST_X macro.

See also
NCBI_DEFINE_ERRCODE_X, ERR_POST_X

Definition at line 600 of file ncbiexpt.hpp.

◆ STD_CATCH_XX

#define STD_CATCH_XX (   err_name,
  err_subcode,
  message 
)
Value:
catch (NCBI_NS_STD::exception& e) { \
NCBI_CHECK_ERR_SUBCODE_X_NAME(err_name, err_subcode); \
NCBI_NS_NCBI::CNcbiDiag() \
<< ErrCode(NCBI_ERRCODE_X_NAME(err_name), err_subcode) \
<< "[" << message << "] Exception: " << e.what(); \
}

Standard handling of "exception"-derived exceptions with given error code name and given error subcode placed in diagnostics.

See also
STD_CATCH_X, NCBI_DEFINE_ERRCODE_X, ERR_POST_XX

Definition at line 626 of file ncbiexpt.hpp.

◆ THROW0_TRACE

#define THROW0_TRACE (   exception_object)
Value:
exception_object, #exception_object)
const T & DbgPrint(const CDiagCompileInfo &info, const T &e, const char *e_str)
Templated function for printing debug message.
Definition: ncbiexpt.hpp:284

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Argument can be a simple string, or an exception object printed using what() method.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Example:

  • THROW0_TRACE("Throw just a string");
  • THROW0_TRACE(runtime_error("message"));

Definition at line 364 of file ncbiexpt.hpp.

◆ THROW0np_TRACE

#define THROW0np_TRACE (   exception_object)
Value:
exception_object, #exception_object)
const T & DbgPrintNP(const CDiagCompileInfo &info, const T &e, const char *e_str)
Create diagnostic stream for printing specified message and "abort()" the program if set by SetThrowT...
Definition: ncbiexpt.hpp:343

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Argument can be any object; its name is printed.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Example:

Definition at line 400 of file ncbiexpt.hpp.

◆ THROW0p_TRACE

#define THROW0p_TRACE (   exception_object)
Value:
exception_object, #exception_object)
const T & DbgPrintP(const CDiagCompileInfo &info, const T &e, const char *e_str)
Print the specified printable object and "abort()" the program if set by SetThrowTraceAbort() or $ABO...
Definition: ncbiexpt.hpp:329

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Argument can be any printable object; that is, any object with a defined output operator.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Example:

Definition at line 383 of file ncbiexpt.hpp.

◆ THROW1_TRACE

#define THROW1_TRACE (   exception_class,
  exception_arg 
)
Value:
exception_class(exception_arg), #exception_class)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Arguments can be any exception class with the specified initialization argument. The class argument need not be derived from std::exception but must have what() method used for output.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Example:

  • THROW1_TRACE(runtime_error, "Something is weird...");

Definition at line 417 of file ncbiexpt.hpp.

◆ THROW1np_TRACE

#define THROW1np_TRACE (   exception_class,
  exception_arg 
)
Value:
exception_class(exception_arg), #exception_class)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Arguments can be any exception class with the specified initialization argument. The class argument need not be derived from std::exception, class name is printed.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Example:

  • THROW1np_TRACE(CUserClass, "argument");

Definition at line 453 of file ncbiexpt.hpp.

◆ THROW1p_TRACE

#define THROW1p_TRACE (   exception_class,
  exception_arg 
)
Value:
exception_class(exception_arg), #exception_class)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Arguments can be any exception class with the specified initialization argument. The class argument need not be derived from std::exception but must have stream output operator defined.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Example:

Definition at line 436 of file ncbiexpt.hpp.

◆ THROW_TRACE

#define THROW_TRACE (   exception_class,
  exception_args 
)
Value:
exception_class exception_args, #exception_class)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Arguments can be any exception class with the specified initialization argument. The class argument need not be derived from std::exception but must have what() method used for output.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Similar to THROW1_TRACE except that the exception class can have multiple initialization arguments instead of just one.

Example:

Definition at line 477 of file ncbiexpt.hpp.

◆ THROW_TRACE_ARGS

#define THROW_TRACE_ARGS (   exception_class,
  ... 
)
Value:
exception_class(__VA_ARGS__), #exception_class)
enable_if< ncbi_throw_trace::is_exception< T >::value, const T & >::type DbgPrintEx(const CDiagCompileInfo &info, const T &t, const char *str)
Definition: ncbiexpt.hpp:179

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown. Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Arguments can be any class with the specified initialization arguments.

  • If the argument has what() method defined (is an exception), the method is used for output.
  • If the argument has output operator defined, it's printed using the operator.
  • If the argument is non-printable, it's name is printed.

Example:

  • THROW_TRACE_ARGS(runtime_error, "Something is weird...");
  • THROW_TRACE_ARGS(CParseException, ("Some parse error", 123));
    See also
    THROW_TRACE_SIMPLE

Definition at line 269 of file ncbiexpt.hpp.

◆ THROW_TRACE_SIMPLE

#define THROW_TRACE_SIMPLE (   exception_object)
Value:
exception_object, #exception_object)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown. Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

  • If the argument has what() method defined (is an exception), the method is used for output.
  • If the argument has output operator defined, it's printed using the operator.
  • If the argument is non-printable, it's name is printed.

Example:

  • THROW_TRACE_SIMPLE("Throw just a string");
  • THROW_TRACE_SIMPLE(runtime_error("message"));

Definition at line 246 of file ncbiexpt.hpp.

◆ THROWnp_TRACE

#define THROWnp_TRACE (   exception_class,
  exception_args 
)
Value:
exception_class exception_args, #exception_class)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Arguments can be any exception class with the specified initialization argument. The class argument need not be derived from std::exception, class name is printed.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Similar to THROW1np_TRACE except that the exception class can have multiple initialization arguments instead of just one.

Example:

Definition at line 519 of file ncbiexpt.hpp.

◆ THROWp_TRACE

#define THROWp_TRACE (   exception_class,
  exception_args 
)
Value:
exception_class exception_args, #exception_class)

Throw trace.

Combines diagnostic message trace and exception throwing. First the diagnostic message is printed, and then exception is thrown.

Arguments can be any exception class with the specified initialization argument. The class argument need not be derived from std::exception but must have stream output operator defined.

Program may abort if so set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Similar to THROW1p_TRACE except that the exception class can have multiple initialization arguments instead of just one.

Example:

Definition at line 499 of file ncbiexpt.hpp.

◆ THROWS

#define THROWS (   x)

Definition at line 75 of file ncbiexpt.hpp.

◆ THROWS_NONE

#define THROWS_NONE

Do not use 'throw' dynamic exception specification for C++11 compilers.

Define THROWS macros for C++ exception specification.

Define use of C++ exception specification mechanism: "f(void) throw();" <== "f(void) THROWS_NONE;" "g(void) throw(e1,e2);" <== "f(void) THROWS((e1,e2));"

Definition at line 74 of file ncbiexpt.hpp.

Typedef Documentation

◆ CParent [1/2]

Parent class type.

Definition at line 1684 of file ncbiexpt.hpp.

◆ CParent [2/2]

template<class TBase >
typedef CErrnoTemplExceptionEx<TBase, NCBI_NS_NCBI::CLastErrorAdapt::GetErrCode , NCBI_NS_NCBI::CLastErrorAdapt::GetErrCodeString > CErrnoTemplException_Win< TBase >::CParent

Parent class type.

Definition at line 1714 of file ncbiexpt.hpp.

◆ FExceptionArgsManip

typedef void(* FExceptionArgsManip) (CExceptionArgs_Base &)

Definition at line 826 of file ncbiexpt.hpp.

◆ TErrCode [1/6]

Definition at line 889 of file ncbiexpt.hpp.

◆ TErrCode [2/6]

Definition at line 1493 of file ncbiexpt.hpp.

◆ TErrCode [3/6]

Definition at line 1516 of file ncbiexpt.hpp.

◆ TErrCode [4/6]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
typedef int CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::TErrCode

Definition at line 1627 of file ncbiexpt.hpp.

◆ TErrCode [5/6]

template<class TBase >
typedef int CErrnoTemplException< TBase >::TErrCode

Definition at line 1693 of file ncbiexpt.hpp.

◆ TErrCode [6/6]

template<class TBase >
typedef int CErrnoTemplException_Win< TBase >::TErrCode

Definition at line 1723 of file ncbiexpt.hpp.

◆ TErrCodeVal

Definition at line 784 of file ncbiexpt.hpp.

◆ TErrorCode

typedef int(* TErrorCode) (void)

Define function type for "error code" function.

Definition at line 1570 of file ncbiexpt.hpp.

◆ TErrorStr

typedef const char*(* TErrorStr) (int errnum)

Define function type for "error str" function.

Definition at line 1573 of file ncbiexpt.hpp.

◆ TExceptionPtr

Definition at line 1125 of file ncbiexpt.hpp.

◆ TFlags [1/2]

Definition at line 785 of file ncbiexpt.hpp.

◆ TFlags [2/2]

Definition at line 902 of file ncbiexpt.hpp.

◆ TSeverity

Definition at line 786 of file ncbiexpt.hpp.

◆ type

template<class T >
using has_no_output_operator_impl< T >::type = typename is_same<bool, decltype(check<T>(declval<T>()))>::type

Definition at line 147 of file ncbiexpt.hpp.

Enumeration Type Documentation

◆ ECategory

Error code category.

Enumerator
eGeneric 
eNcbi 
eMsWindows 

Definition at line 144 of file ncbierror.hpp.

◆ ECode

Enumerator
eNotSet 
eSuccess 
eAddressFamilyNotSupported 

Generic error codes are set based on errno error codes.

eAddressInUse 
eAddressNotAvailable 
eAlreadyConnected 
eArgumentListTooLong 
eArgumentOutOfDomain 
eBadAddress 
eBadFileDescriptor 
eBadMessage 
eBrokenPipe 
eConnectionAborted 
eConnectionAlreadyInProgress 
eConnectionRefused 
eConnectionReset 
eCrossDeviceLink 
eDestinationAddressRequired 
eDeviceOrResourceBusy 
eDirectoryNotEmpty 
eExecutableFormatError 
eFileExists 
eFileTooLarge 
eFilenameTooLong 
eFunctionNotSupported 
eHostUnreachable 
eIdentifierRemoved 
eIllegalByteSequence 
eInappropriateIoControlOperation 
eInterrupted 
eInvalidArgument 
eInvalidSeek 
eIoError 
eIsADirectory 
eMessageSize 
eNetworkDown 
eNetworkReset 
eNetworkUnreachable 
eNoBufferSpace 
eNoChildProcess 
eNoLink 
eNoLockAvailable 
eNoMessage 
eNoProtocolOption 
eNoSpaceOnDevice 
eNoSuchDeviceOrAddress 
eNoSuchDevice 
eNoSuchFileOrDirectory 
eNoSuchProcess 
eNotADirectory 
eNotASocket 
eNotConnected 
eNotEnoughMemory 
eNotSupported 
eOperationCanceled 
eOperationInProgress 
eOperationNotPermitted 
eOperationNotSupported 
eOperationWouldBlock 
ePermissionDenied 
eProtocolError 
eProtocolNotSupported 
eReadOnlyFileSystem 
eResourceDeadlockWouldOccur 
eResourceUnavailableTryAgain 
eResultOutOfRange 
eTextFileBusy 
eTimedOut 
eTooManyFilesOpenInSystem 
eTooManyFilesOpen 
eTooManyLinks 
eTooManySymbolicLinkLevels 
eValueTooLarge 
eWrongProtocolType 
eUnknown 

Unknown error.

Definition at line 53 of file ncbierror.hpp.

◆ EErrCode [1/4]

Error types that an application can generate.

Each derived class has its own error codes and their interpretations. Define two generic error codes "eInvalid" and "eUnknown" to be used by all NCBI applications.

Enumerator
eInvalid 

To be used ONLY as a return value; please, NEVER throw an exception with this code.

eUnknown 

Unknown exception.

Definition at line 884 of file ncbiexpt.hpp.

◆ EErrCode [2/4]

Error types that corelib can generate.

These generic error conditions can occur for corelib applications.

Enumerator
eCore 

Generic corelib error.

eNullPtr 

Null pointer error.

eDll 

Dll error.

eDiagFilter 

Illegal syntax of the diagnostics filter string.

eInvalidArg 

Invalid argument error.

Definition at line 1481 of file ncbiexpt.hpp.

◆ EErrCode [3/4]

Enumerator
eUndefined 

Parameter is missing/undefined.

eInvalidCharacter 

Parameter value contains invalid character.

Definition at line 1507 of file ncbiexpt.hpp.

◆ EErrCode [4/4]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
enum CErrnoTemplExceptionEx::EErrCode

Error type that an application can generate.

Enumerator
eErrno 

Error code.

Definition at line 1589 of file ncbiexpt.hpp.

◆ EFlags

Miscellaneous generic hints, flags and attributes.

Enumerator
fConsole 

Mark the exception with this flag if the exception is supposed to be extra-visible, such as to go to a console or a dialog that's looked at by the end user.

Naturally, the message should be clear and informative enough to be actually helpful for the user. If such "console" exception is passed to the diagnostic (e.g. "ERR_POST(ex);", then the posting will be automatically marked as "console" too (so it'll work as "ERR_POST(Console << ex);").

Definition at line 892 of file ncbiexpt.hpp.

Function Documentation

◆ AddBacklog()

void CException::AddBacklog ( const CDiagCompileInfo info,
const string message,
EDiagSev  severity = eDiag_Error 
)

Add a message to backlog (to re-throw the same exception then).

Definition at line 274 of file ncbiexpt.cpp.

References info, CException::m_MainText, CException::m_Predecessor, prev(), CException::x_Clone(), and CException::x_Init().

Referenced by CNetServProtoParserBase::ParseCommand().

◆ AddPrevious()

void CException::AddPrevious ( const CException prev_exception)

◆ AddToMessage()

void CException::AddToMessage ( const string add_msg)

◆ BEGIN_NAMESPACE()

BEGIN_NAMESPACE ( ncbi_throw_trace  )

◆ bool_isnan() [1/3]

bool std::bool_isnan ( double  x)
inline

Definition at line 80 of file ncbifloat.h.

References isnan.

◆ bool_isnan() [2/3]

bool std::bool_isnan ( float  x)
inline

Definition at line 79 of file ncbifloat.h.

References isnan.

◆ bool_isnan() [3/3]

bool std::bool_isnan ( long double  x)
inline

Definition at line 81 of file ncbifloat.h.

References isnan.

◆ Category()

ECategory CNcbiError::Category ( void  ) const
inline

Get error code category.

Definition at line 154 of file ncbierror.hpp.

References CNcbiError::m_Category.

Referenced by operator<<().

◆ CCoreException() [1/5]

CCoreException::CCoreException ( const CCoreException other)
inline

Definition at line 1493 of file ncbiexpt.hpp.

◆ CCoreException() [2/5]

CCoreException::CCoreException ( const CDiagCompileInfo info,
const CException prev_exception,
const CExceptionArgs< EErrCode > &  args,
const string message 
)
inline

Definition at line 1493 of file ncbiexpt.hpp.

◆ CCoreException() [3/5]

CCoreException::CCoreException ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
EDiagSev  severity,
CException::TFlags  flags 
)
inlineprotected

Definition at line 1493 of file ncbiexpt.hpp.

◆ CCoreException() [4/5]

CCoreException::CCoreException ( const CDiagCompileInfo info,
const CException prev_exception,
EErrCode  err_code,
const string message,
EDiagSev  severity = eDiag_Error 
)
inline

Definition at line 1493 of file ncbiexpt.hpp.

◆ CCoreException() [5/5]

CCoreException::CCoreException ( void  )
inlineprotected

Definition at line 1493 of file ncbiexpt.hpp.

◆ CErrnoTemplException() [1/4]

template<class TBase >
CErrnoTemplException< TBase >::CErrnoTemplException ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
EDiagSev  severity,
CException::TFlags  flags 
)
inlineprotected

Definition at line 1696 of file ncbiexpt.hpp.

◆ CErrnoTemplException() [2/4]

template<class TBase >
CErrnoTemplException< TBase >::CErrnoTemplException ( const CDiagCompileInfo info,
const CException prev_exception,
typename CParent::EErrCode  err_code,
const string message,
EDiagSev  severity = eDiag_Error 
)
inline

Constructor.

Definition at line 1687 of file ncbiexpt.hpp.

◆ CErrnoTemplException() [3/4]

template<class TBase >
CErrnoTemplException< TBase >::CErrnoTemplException ( const CErrnoTemplException< TBase > &  other)
inline

Definition at line 1693 of file ncbiexpt.hpp.

◆ CErrnoTemplException() [4/4]

template<class TBase >
CErrnoTemplException< TBase >::CErrnoTemplException ( void  )
inlineprotected

Definition at line 1693 of file ncbiexpt.hpp.

◆ CErrnoTemplException_Win() [1/4]

template<class TBase >
CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
EDiagSev  severity,
CException::TFlags  flags 
)
inlineprotected

Definition at line 1726 of file ncbiexpt.hpp.

◆ CErrnoTemplException_Win() [2/4]

template<class TBase >
CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win ( const CDiagCompileInfo info,
const CException prev_exception,
typename CParent::EErrCode  err_code,
const string message,
EDiagSev  severity = eDiag_Error 
)
inline

Constructor.

Definition at line 1717 of file ncbiexpt.hpp.

◆ CErrnoTemplException_Win() [3/4]

template<class TBase >
CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win ( const CErrnoTemplException_Win< TBase > &  other)
inline

Definition at line 1723 of file ncbiexpt.hpp.

◆ CErrnoTemplException_Win() [4/4]

template<class TBase >
CErrnoTemplException_Win< TBase >::CErrnoTemplException_Win ( void  )
inlineprotected

Definition at line 1723 of file ncbiexpt.hpp.

◆ CErrnoTemplExceptionEx() [1/3]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::CErrnoTemplExceptionEx ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
int  errnum,
EDiagSev  severity = eDiag_Error,
CException::TFlags  flags = 0 
)
inlineprotected

Constructor (with errno only).

It is unable to get correct error code after all base constructors initialization, that can reset it, so error code should be provided as parameter.

Definition at line 1645 of file ncbiexpt.hpp.

◆ CErrnoTemplExceptionEx() [2/3]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::CErrnoTemplExceptionEx ( const CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr > &  other)
inline

Copy constructor.

Definition at line 1604 of file ncbiexpt.hpp.

◆ CErrnoTemplExceptionEx() [3/3]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::CErrnoTemplExceptionEx ( void  )
inlineprotected

Default constructor.

Definition at line 1656 of file ncbiexpt.hpp.

◆ CException() [1/5]

CException::CException ( const CDiagCompileInfo info,
const CException prev_exception,
const CExceptionArgs< EErrCode > &  args,
const string message 
)

◆ CException() [2/5]

CException::CException ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
EDiagSev  severity = eDiag_Error,
TFlags  flags = 0 
)
protected

Constructor for derived classes.

Definition at line 192 of file ncbiexpt.cpp.

References abort(), CompareDiagPostLevel(), eDiag_Critical, info, CException::m_MainText, s_AbortIfCritical, and CException::x_Init().

◆ CException() [3/5]

CException::CException ( const CDiagCompileInfo info,
const CException prev_exception,
EErrCode  err_code,
const string message,
EDiagSev  severity = eDiag_Error,
TFlags  flags = 0 
)

Constructor.

When throwing an exception initially, "prev_exception" must be 0.

Definition at line 169 of file ncbiexpt.cpp.

References abort(), CompareDiagPostLevel(), eDiag_Critical, info, CException::m_MainText, s_AbortIfCritical, and CException::x_Init().

◆ CException() [4/5]

CException::CException ( const CException other)

Copy constructor.

Definition at line 238 of file ncbiexpt.cpp.

References CException::x_Assign().

◆ CException() [5/5]

CException::CException ( void  )
protected

Constructor with no arguments.

Required in case of multiple inheritance.

Definition at line 244 of file ncbiexpt.cpp.

Referenced by CException::GetErrCode(), and CException::x_Clone().

◆ CExceptionArgs()

template<class TErrCode >
CExceptionArgs< TErrCode >::CExceptionArgs ( TErrCode  err_code)
inline

Definition at line 845 of file ncbiexpt.hpp.

References CExceptionArgs_Base::SetErrCodeVal().

◆ CExceptionArgs_Base()

CExceptionArgs_Base::CExceptionArgs_Base ( void  )
inline

Definition at line 788 of file ncbiexpt.hpp.

◆ CExceptionArgsManip_Wrapper()

CExceptionArgsManip_Wrapper::CExceptionArgsManip_Wrapper ( FExceptionArgsManip  f)
inline

Definition at line 832 of file ncbiexpt.hpp.

◆ CExceptionReporter()

CExceptionReporter::CExceptionReporter ( void  )

Constructor.

Definition at line 608 of file ncbiexpt.cpp.

◆ CExceptionReporterStream()

CExceptionReporterStream::CExceptionReporterStream ( ostream &  out)

Constructor.

Definition at line 707 of file ncbiexpt.cpp.

◆ check() [1/2]

template<class T >
template<typename >
static bool has_no_output_operator_impl< T >::check (   ...)
static

◆ check() [2/2]

template<class T >
template<class V >
static auto has_no_output_operator_impl< T >::check ( const V &  ) -> decltype(declval< ostream & >()<< declval< V >())
static

◆ CInvalidParamException() [1/5]

CInvalidParamException::CInvalidParamException ( const CDiagCompileInfo info,
const CException prev_exception,
const CExceptionArgs< EErrCode > &  args,
const string message 
)
inline

Definition at line 1516 of file ncbiexpt.hpp.

◆ CInvalidParamException() [2/5]

CInvalidParamException::CInvalidParamException ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
EDiagSev  severity,
CException::TFlags  flags 
)
inlineprotected

Definition at line 1516 of file ncbiexpt.hpp.

◆ CInvalidParamException() [3/5]

CInvalidParamException::CInvalidParamException ( const CDiagCompileInfo info,
const CException prev_exception,
EErrCode  err_code,
const string message,
EDiagSev  severity = eDiag_Error 
)
inline

Definition at line 1516 of file ncbiexpt.hpp.

◆ CInvalidParamException() [4/5]

CInvalidParamException::CInvalidParamException ( const CInvalidParamException other)
inline

Definition at line 1516 of file ncbiexpt.hpp.

◆ CInvalidParamException() [5/5]

CInvalidParamException::CInvalidParamException ( void  )
inlineprotected

Definition at line 1516 of file ncbiexpt.hpp.

◆ CNcbiError() [1/2]

CNcbiError::CNcbiError ( const CNcbiError err)
inline

Copy constructor.

Definition at line 169 of file ncbierror.hpp.

◆ CNcbiError() [2/2]

CNcbiError::CNcbiError ( void  )
protected

Definition at line 66 of file ncbierror.cpp.

◆ Code()

CNcbiError::ECode CNcbiError::Code ( void  ) const

◆ Console()

void Console ( CExceptionArgs_Base args)
inline

◆ Critical()

void Critical ( CExceptionArgs_Base args)
inline

Definition at line 1203 of file ncbiexpt.hpp.

References eDiag_Critical, and CExceptionArgs_Base::SetSeverity().

Referenced by CThreadPool_Impl::Abort(), CPSGS_Dispatcher::AddProcessor(), CNcbiApplicationAPI::AppMain(), CAV_DisplayMultiple(), CNCBlobStorage::CheckDiskSpace(), CServer_ConnectionPool::CloseConnection(), CNcbiApplicationAPI::CNcbiApplicationAPI(), CSrvSocketTask::Connect(), CObjectMemoryPool::Delete(), DisableSuppressSystemMessageBox(), DoSocketWait(), CRecNoSaver::ExecuteSlice(), CNCBlobStorage::GetDiskFree(), CNCBlobStorage::GetFullBlobsList(), CUnixFeature::GetGroupGIDByName(), CUnixFeature::GetGroupNameByGID(), CTaskServer::GetHostByIP(), CTaskServer::GetIPByHost(), CSrvSocketTask::GetLocalPort(), CNCBlobStorage::GetMaxSyncLogRecNo(), CNCDistributionConf::GetSlotByNetCacheKey(), CUnixFeature::GetUserNameByUID(), CUnixFeature::GetUserUIDByName(), CNcbiRegistry::IncludeNcbircIfAllowed(), CNCSyncLog::Initialize(), CNCDistributionConf::Initialize(), InitSocketsMan(), CCompoundRWRegistry::LoadBaseRegistries(), CRemoteBlast::LoadFromArchive(), LogCallback(), CMainLoopThread::Main(), main(), CNCMMCentral::PrepareToStop(), CNCBlobStorage::ReadChunkData(), CSearchHelper::ReadModFiles(), CGBDataLoader::RegisterInObjectManager(), CDbapiSimpleApp::RetrieveData(), SGridWorkerNodeImpl::Run(), CNetScheduleDApp::Run(), CNetStorageDApp::Run(), CPubseqGatewayApp::Run(), CSrvTask::RunAfter(), CNCMMCentral::RunLateInit(), s_CloseSocket(), s_ConvertSeverity(), s_ConvertTaskResult(), s_CreateListeningSocket(), s_CreateNewFile(), s_DeleteDBFile(), s_FireTimers(), s_Init(), s_Initialize(), s_LoadConfFile(), s_LockFileMem(), s_LockInstanceGuard(), s_MapFile(), s_OpenIndexDB(), s_ProcessListenError(), s_ProcessListenEvent(), s_ProcessParameters(), s_ReadConfiguration(), s_ReadHeader(), s_ReadServerParams(), s_ReadStorageParams(), s_SetSocketNonBlock(), s_SetSocketOptions(), s_SetSocketQuickAck(), s_StartThread(), s_StopCurMgrThread(), ScanForCpGs(), CRWStreambuf::setbuf(), CConn_Streambuf::setbuf(), CSrvSocketTask::StartProcessing(), StartSocketsMan(), CAsyncDiagThread::Stop(), CValidError_bioseq::ValidateSegRef(), CNCBlobStorage::WriteChunkData(), CBlobCacher::x_CacheMapRecs(), CBlobCacher::x_CacheMetaRec(), CQueryImpl::x_Close(), CNCBlobAccessor::x_DelCorruptedVersion(), CBlobCacher::x_DelFileAndRetryCreate(), CServer::x_DoRun(), CDiskFlusher::x_FlushNextFile(), CAlnMap::x_GetChunks(), CPSGCache::x_LookupBioseqInfo(), CPSGCache::x_LookupBlobProp(), CPSGCache::x_LookupINSDCBioseqInfo(), CPSGCache::x_LookupSi2csi(), CQueueDataBase::x_Open(), CNSTDatabase::x_PostCheckConnection(), CBlobCacher::x_PreCacheRecNums(), CNCActiveHandler::x_ProcessProtocolError(), CNCMessageHandler::x_ReadBlobChunkLength(), CNSTDatabase::x_ReadDbAccessInfo(), CTar::x_ReadEntryInfo(), CNCActiveHandler::x_ReadSizeToRead(), CNCActiveHandler::x_ReplaceServerConn(), CPoolOfThreads< TRequest >::x_RunNewThread(), CNCPeerControl::x_SlotsInitiallySynced(), CNcbiApplicationAPI::x_TryInit(), CCancelRequestException::~CCancelRequestException(), CConditionVariable::~CConditionVariable(), CSrvSocketTask::~CSrvSocketTask(), and SNCDBFileInfo::~SNCDBFileInfo().

◆ DbgPrint() [1/4]

char* DbgPrint ( const CDiagCompileInfo info,
char *  e,
const char *   
)
inline

Print debug message for "char*" object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Definition at line 304 of file ncbiexpt.hpp.

References DoDbgPrint(), and info.

◆ DbgPrint() [2/4]

const char* DbgPrint ( const CDiagCompileInfo info,
const char *  e,
const char *   
)
inline

Print debug message for "const char*" object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Definition at line 294 of file ncbiexpt.hpp.

References DoDbgPrint(), and info.

◆ DbgPrint() [3/4]

const string& DbgPrint ( const CDiagCompileInfo info,
const string e,
const char *   
)
inline

Print debug message for "std::string" object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Definition at line 314 of file ncbiexpt.hpp.

References DoDbgPrint(), and info.

◆ DbgPrint() [4/4]

template<typename T >
const T& DbgPrint ( const CDiagCompileInfo info,
const T e,
const char *  e_str 
)
inline

Templated function for printing debug message.

Print debug message for the specified exception type and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Definition at line 284 of file ncbiexpt.hpp.

References DoDbgPrint(), and info.

◆ DbgPrintEx() [1/4]

char* DbgPrintEx ( const CDiagCompileInfo info,
char *  str,
const char *   
)
inline

Definition at line 207 of file ncbiexpt.hpp.

References DoThrowTraceAbort(), eDiag_Trace, info, and str().

◆ DbgPrintEx() [2/4]

const char* DbgPrintEx ( const CDiagCompileInfo info,
const char *  str,
const char *   
)
inline

Definition at line 215 of file ncbiexpt.hpp.

References DoThrowTraceAbort(), eDiag_Trace, info, and str().

◆ DbgPrintEx() [3/4]

const string& DbgPrintEx ( const CDiagCompileInfo info,
const string str,
const char *   
)
inline

Definition at line 223 of file ncbiexpt.hpp.

References DoThrowTraceAbort(), eDiag_Trace, info, and str().

◆ DbgPrintEx() [4/4]

template<class T >
enable_if<ncbi_throw_trace::is_exception<T>::value, const T&>::type DbgPrintEx ( const CDiagCompileInfo info,
const T t,
const char *  str 
)

Definition at line 179 of file ncbiexpt.hpp.

References DoThrowTraceAbort(), eDiag_Trace, info, str(), and t.

◆ DbgPrintNP()

template<typename T >
const T& DbgPrintNP ( const CDiagCompileInfo info,
const T e,
const char *  e_str 
)
inline

Create diagnostic stream for printing specified message and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

See also
DbgPrintP()

Definition at line 343 of file ncbiexpt.hpp.

References DoDbgPrint(), and info.

◆ DbgPrintP()

template<typename T >
const T& DbgPrintP ( const CDiagCompileInfo info,
const T e,
const char *  e_str 
)
inline

Print the specified printable object and "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

The object must have stream output operator defined.

See also
SetThrowTraceAbort(), DoThrowTraceAbort()

Definition at line 329 of file ncbiexpt.hpp.

References DoThrowTraceAbort(), eDiag_Trace, and info.

◆ DECLARE_OPERATOR_BOOL()

CNcbiError::DECLARE_OPERATOR_BOOL ( Code() !  = eSuccess)

Operator bool: returns TRUE if error was not set to "success".

◆ DoDbgPrint() [1/3]

void DoDbgPrint ( const CDiagCompileInfo info,
const char *  message 
)

Print the specified debug message.

Definition at line 86 of file ncbiexpt.cpp.

References DoThrowTraceAbort(), eDiag_Trace, and info.

Referenced by DbgPrint(), and DbgPrintNP().

◆ DoDbgPrint() [2/3]

void DoDbgPrint ( const CDiagCompileInfo info,
const char *  msg1,
const char *  msg2 
)

Print the specified debug messages.

Definition at line 98 of file ncbiexpt.cpp.

References DoThrowTraceAbort(), eDiag_Trace, and info.

◆ DoDbgPrint() [3/3]

void DoDbgPrint ( const CDiagCompileInfo info,
const string message 
)

Print the specified debug message.

Definition at line 92 of file ncbiexpt.cpp.

References DoThrowTraceAbort(), eDiag_Trace, and info.

◆ DoThrowTraceAbort()

void DoThrowTraceAbort ( void  )

"abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.

Definition at line 72 of file ncbiexpt.cpp.

References _T_XCSTRING, abort(), ABORT_ON_THROW, NcbiSys_getenv, s_DoThrowTraceAbort(), s_DTTA_Initialized(), and str().

Referenced by DbgPrintEx(), DbgPrintP(), DoDbgPrint(), and CException::x_ReportToDebugger().

◆ EnableBackgroundReporting()

bool CException::EnableBackgroundReporting ( bool  enable)
static

Enable background reporting.

If background reporting is enabled, then calling what() or ReportAll() would also report exception to the default exception reporter.

Returns
The previous state of the flag.

Definition at line 496 of file ncbiexpt.cpp.

References prev(), and CException::sm_BkgrEnabled.

Referenced by AlignmentUtility::DoLeaveNOut(), AlignmentUtility::DoLeaveOneOut(), AlignmentUtility::Init(), main(), and NcbiSys_main().

◆ EnableDefault()

bool CExceptionReporter::EnableDefault ( bool  enable)
static

Enable/disable using default reporter.

Returns
Previous state of this flag.

Definition at line 632 of file ncbiexpt.cpp.

References prev(), and CExceptionReporter::sm_DefEnabled.

◆ END_NAMESPACE()

END_NAMESPACE ( ncbi_throw_trace  )

◆ Error()

void Error ( CExceptionArgs_Base args)
inline

Definition at line 1197 of file ncbiexpt.hpp.

References eDiag_Error, and CExceptionArgs_Base::SetSeverity().

Referenced by CChangeUnindexedObjectCommand< T >::Add(), CChangeUnindexedObjectCommand< T >::AddBioseq(), CIndexedDb_New::AddIndexInfo(), CPerfLogGuard::AddParameter(), CProjectService::AddProjectView(), CScoreBuilderBase::AddScore(), CGuiRegistry::AddSite(), CWindowManagerService::AddToolBarContext(), CWindowManagerService::AddToolBarFactory(), CViewManagerService::AddToWorkbench(), AlignmentDisplay::AlignmentDisplay(), AlignmentSet::AlignmentSet(), CTableDataSeq_table::AllowEdit(), CChunkFile::Append(), CSeqIdChunkFile::Append(), CMacroLib::AppendToLibrary(), COrgGeneralPanel::ApplyCommand(), CDockManager::ApplyLayout(), CRenderCommon::Begin(), BlastJSON_FormatReport(), BlastXML2_FormatReport(), BlastXML_FormatReport(), CGlRender::BlendColor(), CGlRender::BlendFunc(), CRenderVector::BlendFunc(), CGlRender::BlendFuncSeparate(), CRenderVector::BlendFuncSeparate(), BOOST_AUTO_TEST_CASE(), CachedTaxonomyLookupCommand(), CGraphUtils::CalcGraphLevels(), CEUtilsApp::CallEFetch(), CEUtilsApp::CallELink(), CEUtilsApp::CallESearch(), CAlnSpanVertModel::CAlnSpanVertModel(), CAsnCacheStore::CAsnCacheStore(), CAV_DisplayMultiple(), CGLFrameBuffer::CheckFBOError(), CGlUtils::CheckGlError(), CCassBlobWaiter::CheckReady(), CCassQueryList::CheckSlot(), CIndexedDb_Old::CIndexedDb_Old(), CVisibleRange::Clamp(), CWorkspaceAutoSaver::CleanUp(), CleanupCommand(), CleanupHugeFileCommand(), CSGAlignmentDS::ClearCache(), CFeatTableDS::ClearCurrentJob(), CGenBankUIDataSource::Close(), CMC3_CodingRegion< order >::CMC3_CodingRegion(), CNADocSumIterator::CNADocSumIterator(), CRenderCommon::ColorC(), CGlRender::ColorMask(), CRenderVector::ColorMask(), ConvertToPairwise(), CTableImportDataSource::ConvertToSeqAnnot(), CRemoteUpdater::ConvertToStandardAuthors(), CMacroFlowEditor::CopyDefaultLibrary(), CSubAnnotationPanel::Create5ColFeatTable(), CVDBBlastUtil::CreateBioseqFromOid(), ColumnarVcfCache::CreateBlob(), CEntrezDB::CreateGene_Gene(), CEntrezDB::CreateGeneSet_Gene(), CAlignCleanup::CreatePairwiseFromMultiple(), CVarTrackFactory::CreateTracks(), CSequenceTrackFactory::CreateTracks(), CViewManagerService::CreateViewInstance(), CSemaphore::CSemaphore(), CSmallDNS::CSmallDNS(), CSymbolGuard::CSymbolGuard(), CTaxonCache::CTaxonCache(), CTLibContext::CTLIB_cterr_handler(), CTLibContext::CTLIB_srverr_handler(), CSGGenBankDS::DeleteAllJobs(), CRegistryWriteView::DeleteField(), CFeaturePanelDS::DeleteMetaDataJob(), CGlRender::Disable(), CRenderVector::Disable(), SAsnProjectSingleT::DoCreate(), CBDB_CheckPointThread::DoJob(), CCacheCleanerThread::DoJob(), AlignmentUtility::DoLeaveNOut(), CSeqMaskerOstat::doSetParam(), CTaxValidationAndCleanup::DoTaxonomyUpdate(), CAlignGlyph::DrawPWAlignElem(), AlignmentDisplay::DumpCondensed(), CGridCommandLineInterfaceApp::DumpJobInputOutput(), DumpSeqEntries(), CGlRender::Enable(), CRenderVector::Enable(), CRenderCommon::End(), CEUtilsGeneric::error(), CEUtilsParser::error(), CHydraServer::error(), CPMCIDConverterServer::error(), CCmdCreateDesc::Execute(), CGBFlatFileObjectLoader::Execute(), CGBObjectLoader::Execute(), CCurVerReader::ExecuteSlice(), CConn_Streambuf::Fetch(), CVariantDescriptors::FinalizeReading(), CTableAnnotDataSource::FindLocations(), CCodeGenerator::FindModuleByName(), CTaxValidationAndCleanup::FixOneSpecificHost(), CRegistryFile::FromConfigFile(), CBlastAligner::GenerateAlignments(), CRemoteBlastAligner::GenerateAlignments(), Get3type(), CAlnVecMultiDataSource::GetAlignType(), IAlnGraphicDataSource::GetAlignType(), CDensegGraphicDataSource::GetAlnSeqString(), CMacroEditorContext::GetAsnMolinfoValue(), CGenomicCollectionsService::GetAssembly(), CGencollSvc::GetAssmAccs(), CSeqUtils::GetAssmAccs_Gi(), CSeqUtils::GetAssmIds_GI(), CSeqUtils::GetAssmIds_GIChr(), CAssemblyInfo::GetAssms_Gi(), CFeatureIndex::GetBestGene(), CFeatureIndex::GetBestParent(), CRemoteBlastDbDataLoader::GetBlobs(), CCgiRequest::GetCGIEntries(), AlignmentDisplay::GetCharAt(), CSeqUtils::GetChrGI(), CTableDataFTable::GetColsCount(), CTableDataSeq_table::GetColumnCommonStrings(), CTableDataFTable::GetColumnLabel(), CTableDataSeq_table::GetColumnLabel(), CTableDataFTable::GetColumnType(), CTableDataSeq_table::GetColumnType(), CBamUtils::GetCoverageGraphInfo(), CSeqDB::GetDiskUsage(), NMFncParse::GetDoFunctions(), CEditObjectSeq_desc::GetEditCommand(), CEditObjectSeq_feat::GetEditCommand(), CEditObjectSubmit_block::GetEditCommand(), CObjectListTableModel::GetExtraValueAt(), GetFeatureFromTableId(), CFtglFontManager::GetFont(), CGencollSvc::GetGCAssembly(), CSeqUtils::GetGiPlacements(), CUnixFeature::GetGroupGIDByName(), CUnixFeature::GetGroupNameByGID(), CGeneGroup::GetHTMLActiveAreas(), CLayoutGroup::GetHTMLActiveAreas(), CTableDataBioTreeContainer::GetIntValue(), CTableDataFTable::GetIntValue(), CTableDataSeq_table::GetIntValue(), CProjectItemLabelHandler::GetLabel(), CWndLayoutReg::GetLayout(), CGraphTrack::GetLegend(), CSeqUtils::GetLocPlacements(), CApplyBsrcQualTreeItemData::GetMacroDescription(), CMTreeItemDataBuilder::GetMActionType(), CRfamTool::GetModelByAccession(), CRfamTool::GetModelByIdentification(), CTableDataSeq_table::GetObjectValue(), CTempTrackProxy::GetOrder(), CFeatureIndex::GetOverlappingSource(), CProjectStorage::GetProject(), CRsitesGlyph::GetRange(), CTableDataBioTreeContainer::GetRealValue(), CTableDataSeq_table::GetRealValue(), CProjectView::GetReflectionInfo(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg(), CTableDataFTable::GetRowsCount(), CTableDataSeq_table::GetRowsCount(), NMItemData::GetSelectedCapType(), CBioseqIndex::GetSequence(), CFeatureIndex::GetSequence(), CTraceGraphTrackFactory::GetSettings(), CViewManagerService::GetSingletonView(), CNCDistributionConf::GetSlotByNetCacheKey(), CTableDataBioTreeContainer::GetStringValue(), CTableDataFTable::GetStringValue(), CTableDataSeq_table::GetStringValue(), CGuiObjectInfoVariation::GetToolTip(), CTMSUtils::GetTrackMetaData(), CUnixFeature::GetUserNameByUID(), CUnixFeature::GetUserUIDByName(), CCrossAlignView::GetVisibleRanges(), CDotMatrixView::GetVisibleRanges(), CRegistryWriteView::GetWriteView(), CCleanupApp::HandleSeqEntry(), CAsn2FlatApp::HandleSeqEntryHandle(), CAsn2FlatApp::HandleSeqSubmit(), CCleanupApp::HandleSubmitBlock(), CDeflineProcess::IndexedProcess(), CAsnSubCacheCreateApplication::IndexNewBlobsInSubCache(), CTableDataSeq_table::Init(), CSeqTableReader::Init(), CMassArray::Init(), CMSMod::Init(), CBedCoverageGraph::Init(), CVcfHeatmap::Init(), CVcfHistogram::Init(), CWigGraph::Init(), CTaxonCache::Initialize(), CPhyTreeView::InitView(), InputError(), CWinMaskUtil::CIdSet_SeqId::insert(), CWinMaskUtil::CIdSet_TextMatch::insert(), CRemoveUnindexedFeatures::IsLocationUnindexed(), CTaxValidationAndCleanup::IsOneSpecificHostValid(), CSeqUtils::isTopLevel(), CBioseqIndex::IterateDescriptors(), CBioseqIndex::IterateFeatures(), CBioseqIndex::IterateGaps(), CGlRender::LineCapStyle(), CRenderVector::LineCapStyle(), CGlRender::LineJoinStyle(), CRenderVector::LineJoinStyle(), CGlRender::LineStipple(), CRenderVector::LineStipple(), CGlRender::LineWidth(), CRenderVector::LineWidth(), CGlTexture::Load(), LoadASNFromIstream(), CTableDataVcf::LoadData(), CSUCRefreshCntrl::CSUCRefreshCntrlHelper::LoadData(), CClickableSortUniqueCount::LoadData(), CValidatePanel::LoadData(), CRemoteBlast::LoadFromArchive(), CDockManager::LoadLayout(), LoadScope(), CGlWidgetBase::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CTestApplication::LoadTable(), LogCallback(), CReloadPublications::LookUpByPmid(), CDoiLookup::LookupIsojta(), CSQLITE3_Cache::CWriterThread::Main(), CAsn2AsnThread::Main(), CGlOsContext::MakeCurrent(), CGlBuffer20< T >::MapBuffer(), CGlBuffer11< T >::MapBuffer(), CVisibleRange::Match(), CAlignSort::MergeSortedFiles(), CAsn2FlatApp::ObtainSeqEntryFromBioseq(), CAsn2FlatApp::ObtainSeqEntryFromBioseqSet(), CAsn2FlatApp::ObtainSeqEntryFromSeqEntry(), CMacroEditingActionPanel::OnActionTreeItemChanged(), CSelectFeatureDlg::OnButtonLoadFile(), CSelectFeatureDlg::OnButtonSaveFile(), CApplyRNAITSDlg::OnCtrlFromKillFocus(), CApplyRNAITSDlg::OnCtrlToKillFocus(), CFrameworkDemoGUI::OnDiagnosticsTimer(), CMacroCompoundConstraintPanel::OnEditConstraint(), CCrossAlnDemoDlg::OnFileClick(), CHitMatrixDemoDlg::OnFileClick(), CBamRefSequencesPanel::OnIdle(), CVcfRefSequencesPanel::OnIdle(), CSubAnnotationPanel::OnImportFeatTableClick(), CAppJobEventTranslator::OnJobProgress(), CFlatFileDemoDlg::OnLoadFileClick(), CSubPrep_panel::OnSaveBtnClick(), CwxExportAlnmultiImgDlg::OnSaveClick(), CMacroFlowEditor::OnSaveCopies(), CDataMiningPanel::OnSearchFinished(), CViewGraphic::OnVisibleRangeChanged(), CLBLASTUIDataSource::Open(), CBamUIDataSource::Open(), CGenBankUIDataSource::Open(), CSQLITE3_Cache::Open(), CSeqIdChunkFile::OpenForRead(), CChunkFile::OpenForRead(), CChunkFile::OpenForWrite(), CSeqIdChunkFile::OpenForWrite(), CPrimeCacheApplication::CCacheBioseq::operator()(), SBlobInserter::operator()(), CAlignSort::SAlignExtractor::operator()(), CAssignQueryTreeGetArgs::operator()(), SResponse::operator()(), Vector< T >::operator[](), Matrix< T >::operator[](), SDiagMessage::ParseDiagStream(), CSeqUtils::ParseRanges(), PatchTargetSequence(), CGlRender::PdfShadeStyle(), CRenderVector::PdfShadeStyle(), CChangePhyloPropertyCmd::PerformEdit(), CGlRender::PointSize(), CRenderVector::PointSize(), CGlRender::PolygonMode(), CRenderVector::PolygonMode(), CGlRender::PolygonStipple(), CRenderVector::PolygonStipple(), CGlRender::PopAttrib(), CRenderVector::PopAttrib(), CPerfLogGuard::Post(), CEventHandler::CPostQueue::Post(), CAbstractProjectItem::PostRead(), CVariation_ref::PostRead(), CSequenceEditingEventHandler::PrepareSeqSubmit(), CSrvTime::Print(), CBlastFormat::PrintOneResultSet(), CSeqEntryPresenter::Process(), CCassandraFullscanWorker::ProcessQueryResult(), CGlCgiImageApplication::ProcessRequest(), CVariationNormalizationRight::ProcessShift(), CBDB_Cache::Purge(), CEntrezDB::Query(), CGlimmerReader::Read(), ReadAnnotFromFile(), CColumnarVCFReader::ReadData(), ReadEntryFromFile(), ReadFastaSeqsFromFile(), CImageIO::ReadImage(), CImageIO::ReadImageInfo(), CFormatReadHook::ReadObject(), CReadHook_SkipError::ReadObject(), CImageIO::ReadSubImage(), CColumnarVCFReader::ReadVariantsForChrs(), CRenderCommon::Rectf(), CUndoManager::Redo(), CViewManagerService::RegisterFactory(), CLayoutTrack::RegisterIconImage(), CBDB_Cache::RegisterOverflow(), CTableAnnotDataSource::RemoveSeqLocs(), CWindowManagerService::RemoveToolBarContext(), CSeqTestApplication::Render(), CDrawingPanel::Render(), IPhyloTreeRender::RenderPdf(), CGuard_Base::ReportException(), CDataLoadingAppJob::Run(), CProjectServiceTestJob::Run(), CNetBlastSubmittingJob::Run(), CNetBlastMonitoringJob::Run(), C5ColExportJob::Run(), CFlatFileExportJob::Run(), CEditAppJob::Run(), CBuildAlnVecJob::Run(), CBuildSparseAlnJob::Run(), CTableDataSUCJob::Run(), CTableDataValidateJob::Run(), CTextRetrieveJob::Run(), CMkIndexApplication::Run(), CSRSearchApplication::Run(), CBlastDBCmdApp::Run(), CMakeProfileDBApp::Run(), CBlastVdbCmdApp::Run(), CFeatureRetrievalJob::Run(), CFlatFileSequenceListJob::Run(), CTax4BlastDemo::Run(), CAsn2FastaApp::Run(), CAsn2FlatApp::Run(), CAsnvalApp::Run(), CAgpFastaComparator::Run(), SGridWorkerNodeImpl::Run(), CNCBIwxApplication::Run(), CAVApp::Run(), CTestCompartApplication::Run(), CAsn2Asn::Run(), CAsnCacheTestApplication::Run(), CCacheIndexCopyApp::Run(), CConcatSeqEntriesApplication::Run(), CAsnCacheDumpSeqIdsApplication::Run(), CReadIndexSpeedApp::Run(), CAsnSubCacheCreateApplication::Run(), CWalkAsnCacheApplication::Run(), BlastdbCopyApplication::Run(), CGi2TaxIdApp::Run(), CObjExtractApp::Run(), CDemoApp::Run(), CStreamTestApp::Run(), CWinMaskApplication::Run(), CTestApplication::Run(), CEntrez2ClientApp::Run(), CSampleSoapClientApplication::Run(), CConvImageApp::Run(), CImageDemoApp::Run(), CSubImageApp::Run(), CClientGenomicCollectionsSvcApplication::RunWithService(), s_AttachAnnotToScope(), s_AttachEntryToScope(), CMixedStrands::s_Blast2NASeq(), s_CallAligner(), s_CompressDiscToDenseq(), s_ConvertSeverity(), s_Create5ColFeatTable(), CBlastArgs::s_CreateBlastOptions(), s_CreateListeningSocket(), s_DetachAnnotFromScope(), s_DetachEntryFromScope(), s_DoSmartProcessing(), s_ExpandSubNodes(), s_FillModuleListPSAPI(), s_FillModuleListTH32(), CMacroFunction_LookupPub::s_GetArticleFromEntrezById(), s_GetCdregionLabel(), s_GetDBTree(), s_GetGeneWeight(), s_GetJoinedAlignment(), s_GetMacroScriptLocation(), s_GetMaskLoc(), s_GetPubImprint(), CAdjustForConsensusSpliceSite::s_IsAdjustedSpliceSitePairOK(), s_IsAsmAccEquiv(), s_IsMaskAlgoIdValid(), s_OpenIndexDB(), s_ParseOptionalSettings(), s_ProcessListenEvent(), s_ProgressCallback(), s_ReadData(), s_ReadIdsFromFile(), s_ReadPerClientConfig(), s_ReadSpecificParams(), s_ReadVariableParams(), s_ReadVCFAssembly(), s_ReinitializeStorage(), s_RunBlast2AASeq(), s_RunBlast2NASeq(), s_SearchInSeqText(), s_UpdateMacros(), CAlignCompare::SAlignment::SAlignment(), CSearchHelper::SaveAnyFile(), CSubmissionWizard::SaveFile(), NMacroStats::SaveScriptToFile(), CGlWidgetBase::SaveSettings(), CSequenceEditingEventHandler::SaveSubmissionFile(), CGlRender::ScaleFactor(), CGlRender::ScaleInvarient(), CPkgManager::ScanPackages(), CGlRender::Scissor(), CRenderVector::Scissor(), CClippedScorer::ScoreAlignments(), CDataMiningPanel::SelectToolByName(), CBrowserUtils::SendToBrowser(), CAgpwriteProcess::SeqEntryProcess(), CCleanupProcess::SeqEntryProcess(), CFastaProcess::SeqEntryProcess(), CFlatfileProcess::SeqEntryProcess(), CGeneOverlapProcess::SeqEntryProcess(), CGeneFeatTreeProcess::SeqEntryProcess(), CInvertProcess::SeqEntryProcess(), CNullProcess::SeqEntryProcess(), CProsplignProcess::SeqEntryProcess(), CSeqVectorProcess::SeqEntryProcess(), CTitleProcess::SeqEntryProcess(), CValidateProcess::SeqEntryProcess(), CVariation_ref::SetAllele_frequency(), CVariation_ref::SetAllele_origin(), CVariation_ref::SetAllele_state(), CPkgManager::SetAppPkg(), CPhyloTreeCalculator::SetAttrTable(), CBamCoverageGraphPanel::SetBamFiles(), CMacroCompoundConstraintPanel::SetConstraints(), CApplyTableItemData::SetData(), CApplyStrCommTableTreeItemData::SetData(), CApplyRNATableTreeItemData::SetData(), SetDoubleDiagHandler(), CSelectQualdDlg::SetField(), CRegistryWriteView::SetField(), CTabularFormatter::SetFormat(), CSeqGlyph::SetHighlightsColor(), CSeq_loc::SetId(), CTableDataSeq_table::SetIntValue(), CVariation_ref::SetIs_ancestral_allele(), CTableDataSeq_table::SetRealValue(), CSearch< LEGACY, NHITS >::SetResult(), CTableDataSeq_table::SetStringValue(), IMacroBioDataIter::SetTableToApply(), SetupForUpdate(), CVariation_ref::SetValidated(), CGlRender::ShadeModel(), CRenderVector::ShadeModel(), CUndoManager::ShowErrorMsg(), ShowFeedbackDialog(), CViewManagerService::ShutDownService(), CAlignSort::SortAlignments(), SpecificHostCleanupCommand(), CSearch< LEGACY, NHITS >::Spectrum2Peak(), CUnorderedSplitter::SplitId(), CUnorderedSplitter::SplitLoc(), sReportDSExceptionToLog(), CPerfLogger::Start(), CSearchToolBase::StartSearch(), CSQLITE3_Cache::StoreSynchronous(), TaxonomyLookupCommand(), CRenderCommon::TexCoord2f(), CMacroFunction_UpdateProteinSeqs::TheFunction(), CObject::ThrowNullPointerException(), CBLASTParams::ToArgVec(), TrackShuttingDown(), CAlnMultiPane::TTHH_GetTooltip(), CUndoManager::Undo(), CDeflineProcess::UnindexedProcess(), CFeatTableDS::Update(), CLDS2_Manager::UpdateData(), CSeqUpdateWorker::UpdateMultipleSequences(), CNCBlobAccessor::UpdatePurgeData(), CSymbolGuard::UpdateSymbols(), CMSSearchSettings::Validate(), CAsnvalThreadState::ValidateInput(), CDockLayoutTree::CNode::ValidateSplitterSizes(), CValidError_bioseq::ValidateTwintrons(), VDBLogWriter(), VectorRemoveElements(), VerifyAlignmentData(), CRenderCommon::Vertex3f(), CGlRenderPdf::Vertex3f(), CVcfWriter::WriteAnnot(), CTableAnnotDataSource::WriteAsn(), CAsnSubCacheCreateApplication::WriteBlobsInSubCache(), CImageIO::WriteImage(), CImageIO::WriteSubImage(), CGlRenderDebug::WriteText(), CRenderCommon::WriteText(), CSVGRenderer::WriteText(), CMemberInfoFunctions::WriteWithSetFlagMember(), CNetBlastSubmittingJob::x_AddError(), CFeatureTrack::x_AddHistogram(), CTableXformPanel::x_AddLocations(), CCachedTaxon3::x_AddReplyToCache(), CSelectProjectOptions::x_AddToExistingProject(), CMacroInterpreter::x_AddToRTVar(), CMSAToolJob::x_AddTreeProjectItem(), CTar::x_Append(), CTar::x_AppendFile(), CLocalFileRestorer::x_AttachNewObject(), CSGGenBankDS::x_BackgroundJob(), CAnnotCompareDS::x_BackgroundJob(), CTar::x_Backspace(), CCleanupApp::x_BasicAndExtended(), CPrimeCacheApplication::x_CacheSeqEntry(), CAlignGlyph::x_CalcIntervals(), CSeqGraphicPane::x_ChangeSwitchPoint(), CFileLoadWizard::x_CheckFormatConflict(), CPerfLogger::x_CheckValidity(), CAlignCleanup::x_Cleanup_AlignVec(), CAlignCleanup::x_Cleanup_AnchoredAln(), CWinMaskerFileStorage::x_ClearDownloads(), CTar::x_Close(), CCmdCleanup::x_CreateActionCmd(), CImportFeatTable::x_CreateCommand(), CBamLoadingJob::x_CreateDataLoader(), CSGFeatureJob::x_CreateFeature1(), CTableXformPanel::x_CreateFeatures(), CEUtilsApp::x_CreateLitRequest(), CBLASTSeqToolJob::x_CreateProjectItems(), CMergeAlignmentsJob::x_CreateProjectItems(), CMSAToolJob::x_CreateProjectItems(), CNGAlignJob::x_CreateProjectItems(), CAdvancedCleanupJob::x_CreateProjectItems(), CFindOverlapJob::x_CreateProjectItems(), CVcfLoadingJob::x_CreateProjectItems(), CEUtilsApp::x_CreateSeqRequest(), CNgAlignApp::x_CreateSequenceSet(), CSeq_align::x_CreateSubsegAlignment(), CEUtilsApp::x_CreateTaxRequest(), CUpdateMultipleSeq_Input::x_CreateUpdateSeqInputForUnitTest(), CAnnotCompareDS::x_DeleteAllJobs(), CBioseqEditor::x_DeleteObject(), CVCFVariantsBase::x_DeserializeColumn(), CLocalFileRestorer::x_DetachOrigObject(), CURLTooltipHandler::x_DisplayUnalignedRegion(), CComponentSearchJob::x_DoSearch(), CWinMaskerFileStorage::x_DownloadFiles(), CAlignGlyph::x_DrawMultiAlign(), CAsnSubCacheCreateApplication::x_EliminateIdsAlreadyInCache(), CGFFReader::x_Error(), CSGAlignStatJob::x_Execute(), CVcfFeatureJob::x_Execute(), CQueryParsePanel::x_ExecuteQuery(), CTar::x_ExtractEntry(), CTar::x_ExtractSparseFile(), CAsnSubCacheCreateApplication::x_FetchMissingBlobs(), CAssemblyInfo::x_FilterTaxIds(), CNCMessageHandler::x_FinishReadingBlob(), CTar::x_Flush(), CFlatGatherer::x_GatherFeatures(), CFlatGatherer::x_GatherFeaturesIdx(), CFlatGatherer::x_GatherFeaturesOnRange(), CFlatGatherer::x_GatherFeaturesOnRangeIdx(), CFlatGatherer::x_GatherFeaturesOnWholeLocation(), CFlatGatherer::x_GatherFeaturesOnWholeLocationIdx(), CProSplignJob::x_GenerateCompartments(), CNAUtils::x_GetAllGIs(), CNAUtils::x_GetAllNAIds(), CNAUtils::x_GetAllNAIdsWithContext(), CAssemblyInfo::x_GetAssmInfo(), CWigGraph::x_GetBigWigSummary(), CAsnCacheStore::x_GetBlob(), CCreateGeneModelTask::x_GetCommand(), CSeqDB::x_GetDBFilesMetaData(), CBioseqEditor::x_GetDeleteCommand(), CTaxonCache::x_GetItem(), CEntrez2ClientApp::x_GetLinked(), CEntrez2ClientApp::x_GetLinks(), CNAUtils::x_GetNAEntrezLinks(), CNAUtils::x_GetNAId(), CBlastDBCmdApp::x_GetOids(), CRelaxedLookupDlg::x_GetPubIds(), CRelaxedLookupDlg::x_GetPubIdsEutils(), CColumnarVCFLoaderManager::x_GetRefSeqs(), CRemoteBlast::x_GetSearchResultsHTTP(), CEntrez2ClientApp::x_GetTermHierarchy(), CEntrez2ClientApp::x_GetTermList(), CEntrez2ClientApp::x_GetTermPos(), CLDS2_Manager::x_GetUrlHandler(), CFeatGlyph::x_GetUserColor(), CDataCrawlerCache::x_Heartbeat(), CAlignDataSource::x_Init(), CSeqMasterIndex::x_Init(), CSeq_loc_Mapper_Base::x_InitAlign(), CGlOsContext::x_InitContext(), CBioseqIndex::x_InitDescs(), CBioseqIndex::x_InitFeats(), CBioseqIndex::x_InitGaps(), CBlastHitMatrix::x_InitGraphics(), CSeqMasterIndex::x_Initialize(), CBioseqIndex::x_InitSource(), CSeq_loc_Mapper_Base::x_InitSpliced(), CSelectionPanel::x_InitTextWidget(), CSeqUpdateWorker::x_LaunchSingleUpdateSequence(), CEutilsClient::x_Link(), CFileLoader::x_LoadAsnTextOrXml(), CFileLoader::x_LoadGff(), CwxNCBIApp::x_LoadGuiRegistry(), CNetBLASTUIDataSource::x_LoadJobDescriptors(), CPkgManager::x_LoadPackage(), CSGSeqGraphJob::x_LoadSeqTable(), CFeaturePanel::x_LoadSettings(), CGraphOverlay::x_LoadSettings(), CEpigenomicsTrack::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CTraceGraphTrack::x_LoadSettings(), CProjectService::x_LoadWorkspace(), CAsnSubCacheCreateApplication::x_LocateBlobsInCache(), CSQLITE3_Statement::x_Log(), CTreeAlignMerger::x_MakeSeqAlign(), CInversionMergeAligner::x_MergeSeqAlignSet(), CMergeAligner::x_MergeSeqAlignSet(), CEpigenomicsTrack::x_OnJobCompleted(), CFeatureTrack::x_OnJobCompleted(), CGraphTrack::x_OnJobCompleted(), CSegmentMapTrack::x_OnJobCompleted(), CSequenceTrack::x_OnJobCompleted(), CTrackContainer::x_OnJobCompleted(), CAlignmentTrack::x_OnJobCompleted(), CGeneModelTrack::x_OnJobCompleted(), CSixFramesTransTrack::x_OnJobCompleted(), CVcfTrack::x_OnJobCompleted(), CVcfLoadingJob::x_OnVCFVariantListReady(), CMacroInterpreter::x_ParseArgsForApplyTable(), CURLTooltipHandler::x_ParseGenomicLinkHref(), CTar::x_ParsePAXData(), CAlnSpanVertModel::x_PopulateRows(), CAgpFastaComparator::x_Process(), CPrimeCacheApplication::x_Process_Fasta(), CPrimeCacheApplication::x_Process_Ids(), CBlastDBCmdApp::x_ProcessBatchEntry(), CBlastDBCmdApp::x_ProcessBatchEntry_NoDup(), CBlastDBCmdApp::x_ProcessBatchPig(), CHugeFileDemoApp::x_ProcessFileTraditionally(), CMakeBlastDBApp::x_ProcessInputData(), CMakeBlastDBApp::x_ProcessMaskData(), CBlastDBCmdApp::x_ProcessSearchRequest(), CBlastVdbCmdApp::x_ProcessSearchRequest(), CBlastDBCmdApp::x_ProcessTaxIdList(), CColumnarVCFReader::x_ProcessWarning(), CTar::x_ReadAndProcess(), CTar::x_ReadArchive(), CNCMessageHandler::x_ReadAuthMessage(), CNCMessageHandler::x_ReadBlobChunkLength(), CNCMessageHandler::x_ReadBlobSignature(), CNCMessageHandler::x_ReadCommand(), CSparseGraph::x_ReadData(), CTar::x_ReadEntryInfo(), CDockManager::x_ReadLayout(), CWigGraph::x_ReadSummary(), CMacroFunction_StringFastConstraints::x_ReadSynonymsFor(), CMacroFunction_StringSlowConstraints::x_ReadSynonymsFor(), CUpdateSeq_Input::x_ReadUpdateSeq_ASN(), CUpdateMultipleSeq_Input::x_ReadUpdateSeqs_ASN(), CSeqGraphicPane::x_Render(), CHitMatrixPane::x_RenderContent(), CFastaSeqBlockItem::x_RenderText(), CCleanupApp::x_ReportChanges(), CBioseqEditor::x_ReportError(), CAlnVecRow::x_ResetTrackPanel(), CInstancedAligner::x_RunAligner(), CInstancedAligner::x_RunCleanup(), CInstancedAligner::x_RunMMGlobal(), CGBDocument::x_SaveFile(), CNetBLASTUIDataSource::x_SaveJobDescriptors(), CWorkspaceAutoSaver::x_SaveWorkspace(), CEutilsClient::x_Search(), CAssemblyInfo::x_SearchIds(), CCDSTranslationPanel::x_SetLocationForProtein(), CAssemblyListPanel::x_SetTextCompleter(), CSQLITE3_Cache::x_SetTimestamp(), CProSplignJob::x_SetupAndRuntBlastn(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CVariationNormalization_base< T >::x_Shift(), CWindowManagerService::x_ShowToolBar(), CNCPeerControl::x_SlotsInitiallySynced(), CAlignTabExportPage2::x_StartAlignNamesJob(), CDataCrawlerCache::x_StartHeartbeat(), CAlignTabExportPage2::x_StartNAAlignNamesJob(), CSubmissionWizard::x_StepBackward(), CSubmissionWizard::x_StepForward(), CDataCrawlerCache::x_StopHeartbeat(), CLayoutTrackHandler::x_StopMoving(), CBDB_Cache::x_Store(), CSparseGraph::x_Sync(), CNCPeerControl::x_UpdateHasTasks(), CSeqEditPackage::x_UpdateValAuxFile(), CViewGraphic::x_UpdateVisRangeLayout(), CDataMiningPanel::x_UpdateWidgetAndTool(), CAssemblyInfo::x_ValidateTaxId(), CAppJobDispatcher::x_VerifyProgressNotNull(), CTar::x_WriteArchive(), CVcfWriter::x_WriteFeature(), CProjectFileWriter::x_WriteObject(), CAlignmentTrack::~CAlignmentTrack(), CAlnVecMultiDataSource::~CAlnVecMultiDataSource(), CBDB_BlobDeMuxPersistent::~CBDB_BlobDeMuxPersistent(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::~CBDB_BlobSplitStore(), CBDB_ExtBlobStore< TBV >::~CBDB_ExtBlobStore(), CBuildDatabase::~CBuildDatabase(), CCassQueryList::~CCassQueryList(), CGraphCache< TData >::~CGraphCache(), CPerfLogger::~CPerfLogger(), CSafeStaticGuard::~CSafeStaticGuard(), CSparseMultiDataSource::~CSparseMultiDataSource(), CSQLITE3_Cache::~CSQLITE3_Cache(), CTaxonCache::~CTaxonCache(), and CWriteDB_Impl::~CWriteDB_Impl().

◆ Extra()

const string& CNcbiError::Extra ( void  ) const
inline

Get string information provided when this error was set.

Definition at line 164 of file ncbierror.hpp.

References CNcbiError::m_Extra.

Referenced by operator<<().

◆ Fatal()

void Fatal ( CExceptionArgs_Base args)
inline

Definition at line 1209 of file ncbiexpt.hpp.

References eDiag_Fatal, and CExceptionArgs_Base::SetSeverity().

Referenced by CCodeGenerator::AddConfigLine(), SPSG_IoCoordinator::AddRequest(), boost::assertion_failed(), CheckFDLimit(), CScopeTransaction_Impl::Commit(), CDbapiSampleApp::CreateConnection(), CSearchHelper::CreateSearchSettings(), DestinationFile::DestinationFile(), CCodeGenerator::GenerateClientCode(), CCodeGenerator::GenerateCombiningFile(), CFileCode::GenerateCPP(), CCodeGenerator::GenerateFileList(), CFileCode::GenerateHPP(), CCodeGenerator::GenerateModuleCPP(), CCodeGenerator::GenerateModuleHPP(), CDbapiSampleApp::GetDriverContext(), SUv_Timer::Init(), SUv_Async::Init(), CCodeGenerator::LoadConfig(), CRemoteBlast::LoadFromArchive(), CFileModules::PrintDTDModular(), CFileModules::PrintSampleDEF(), CFileModules::PrintXMLSchemaModular(), CBam2GraphApp::ProcessFile(), CBam2GraphApp::ProcessSrz(), CSearchHelper::ReadFile(), CSearchHelper::ReadModFiles(), CScopeTransaction_Impl::RollBack(), CReadresult::Run(), COMSSA::Run(), COMSSAMerge::Run(), SUv_Loop::Run(), CXcompareAnnotsApplication::Run(), CSampleObjmgrApplication::Run(), s_ConvertSeverity(), CSearch< LEGACY, NHITS >::Search(), CMSPeak::SetComputedCharge(), CSearch< LEGACY, NHITS >::SetIons(), COMSSABase::SetSearchSettings(), CDbapiSimpleApp::SetupDb(), SUv_Async::Signal(), SourceFile::SourceFile(), SUv_Timer::Start(), SUv_Barrier::SUv_Barrier(), SUv_Loop::SUv_Loop(), CSearchHelper::ValidateSearchSettings(), SUv_Barrier::Wait(), CFileCode::WriteUserFile(), CDownloadJob::x_Download(), CDownloadJob::x_DownloadAndExtract(), CSGAlignStatJob::x_Execute(), x_GetDispatcher(), CXcompareAnnotsApplication::x_ProcessSeqAlignSetFromFile(), CNcbiApplicationAPI::x_TryInit(), CScopeTransaction::~CScopeTransaction(), and CScopeTransaction_Impl::~CScopeTransaction_Impl().

◆ GetClass()

const string& CException::GetClass ( void  ) const
inline

Get class name used for reporting.

Definition at line 1023 of file ncbiexpt.hpp.

References CException::m_Class.

Referenced by CDiagFilter::Check(), CExceptionReporterStream::Report(), CException::ReportStd(), and CNcbiDiag::x_Put().

◆ GetDefault()

const CExceptionReporter * CExceptionReporter::GetDefault ( void  )
static

Get default reporter.

Definition at line 626 of file ncbiexpt.cpp.

References CExceptionReporter::sm_DefHandler.

◆ GetErrCode() [1/8]

static int CLastErrorAdapt::GetErrCode ( void  )
inlinestatic

Definition at line 1551 of file ncbiexpt.hpp.

◆ GetErrCode() [2/8]

template<class TErrCode >
TErrCode CExceptionArgs< TErrCode >::GetErrCode ( void  ) const
inline

Definition at line 847 of file ncbiexpt.hpp.

References CExceptionArgs_Base::GetErrCodeVal().

Referenced by CSDB_Exception::CSDB_Exception().

◆ GetErrCode() [3/8]

CException::TErrCode CException::GetErrCode ( void  ) const

Get error code.

Definition at line 453 of file ncbiexpt.cpp.

References CException::CException(), CException::eInvalid, and CException::x_GetErrCode().

Referenced by CSplign::AlignSingleCompartment(), CNcbiApplicationAPI::AppMain(), CGridCommandLineInterfaceApp::Automation_PipeServer(), BOOST_AUTO_TEST_CASE(), CGraphUtils::CalcGraphLevels(), CPSGDataLoader_Impl::CallWithRetry(), CanRetry(), CCassBlobWaiter::CheckReady(), CCassQueryList::CheckSlot(), CGridCommandLineInterfaceApp::Cmd_BlobInfo(), SNetServerImpl::ConnectAndExec(), CGridCommandLineInterfaceApp::DumpJobInputOutput(), CNetScheduleException::ErrCodeToHTTPStatusCode(), CNetStorageServerException::ErrCodeToHTTPStatusCode(), SNetScheduleExecutorImpl::ExecGET(), CTcpWorker::Execute(), SNetStorageObjectRPC::Exists(), CProjectStorage::Exists(), CBlastDBExtractor::ExtractSeqData(), CNetService::FindServer(), g_ThrowNetStorageException(), CDataLoader::GetAccVerFound(), CGenomicCollectionsService::GetAssembly(), CNetCacheAPI::GetData(), CBamException::GetErrCode(), CSraException::GetErrCode(), CSRSearch::InternalException::GetErrCodeString(), CASNCacheException::GetErrCodeString(), CDbIndex_Exception::GetErrCodeString(), CSeqMasker::CSeqMaskerException::GetErrCodeString(), CSeqMaskerIstatAscii::Exception::GetErrCodeString(), CSeqMaskerIstatBin::Exception::GetErrCodeString(), CSeqMaskerIstatFactory::Exception::GetErrCodeString(), CSeqMaskerIstatOAscii::Exception::GetErrCodeString(), CSeqMaskerIstatOBinary::Exception::GetErrCodeString(), CSeqMaskerOstat::CSeqMaskerOstatException::GetErrCodeString(), CSeqMaskerOstatAscii::CSeqMaskerOstatAsciiException::GetErrCodeString(), CSeqMaskerOstatFactory::CSeqMaskerOstatFactoryException::GetErrCodeString(), CSeqMaskerOstatOpt::Exception::GetErrCodeString(), CSeqMaskerUsetArray::Exception::GetErrCodeString(), CSeqMaskerUsetHash::Exception::GetErrCodeString(), CSeqMaskerUsetSimple::Exception::GetErrCodeString(), CWinMaskConfigException::GetErrCodeString(), CWinMaskCountsConverter::Exception::GetErrCodeString(), CWinMaskCountsGenerator::GenCountsException::GetErrCodeString(), CCompoundIDException::GetErrCodeString(), CJsonException::GetErrCodeString(), CNetCacheException::GetErrCodeString(), CNetCacheBlobTooOldException::GetErrCodeString(), CNetScheduleException::GetErrCodeString(), CNetStorageException::GetErrCodeString(), COpenViewManager::COVMException::GetErrCodeString(), CUser_object::CRefGeneTrackingException::GetErrCodeString(), CMultisourceException::GetErrCodeString(), CWriteDBException::GetErrCodeString(), CMaskReader::Exception::GetErrCodeString(), CObjWriterException::GetErrCodeString(), CManifestException::GetErrCodeString(), CGffDeconcatException::GetErrCodeString(), CSeqSubSplitException::GetErrCodeString(), CScorePValuesException::GetErrCodeString(), CException::GetErrCodeString(), CVariationValidateException::GetErrCodeString(), CHgvsVariantException::GetErrCodeString(), CNetStorageServerException::GetErrCodeString(), CNetStorageGCException::GetErrCodeString(), CPubseqGatewayException::GetErrCodeString(), CPubseqGatewayUVException::GetErrCodeString(), CBlastHitMatrixCGIException::GetErrCodeString(), CAlnMultiCGIException::GetErrCodeString(), CAlgoAlignException::GetErrCodeString(), CAlgoAlignUtilException::GetErrCodeString(), CIndexedDbException::GetErrCodeString(), CBlastException::GetErrCodeString(), CRemoteBlastException::GetErrCodeString(), CInputException::GetErrCodeString(), CGeneralScoreMatrixException::GetErrCodeString(), CHttpSessionException::GetErrCodeString(), CGridClientException::GetErrCodeString(), CStringOrBlobStorageRWException::GetErrCodeString(), CGridWorkerNodeException::GetErrCodeString(), CNetServiceException::GetErrCodeString(), CNSProtoParserException::GetErrCodeString(), CNSClientFactoryException::GetErrCodeString(), CNetSrvConnException::GetErrCodeString(), CBlobStorageException::GetErrCodeString(), CHttpCookieException::GetErrCodeString(), CUrlException::GetErrCodeString(), CSQLITE_Exception::GetErrCodeString(), CSDB_Exception::GetErrCodeString(), CQueryExecException::GetErrCodeString(), CSeqUpdateException::GetErrCodeString(), CPhyloTreeException::GetErrCodeString(), CFeatFilterQueryException::GetErrCodeString(), CGCServiceException::GetErrCodeString(), CSeqAnnotException::GetErrCodeString(), CSeqIdException::GetErrCodeString(), CSeqLocException::GetErrCodeString(), CSeqTableException::GetErrCodeString(), CGridRPCBaseClientException::GetErrCodeString(), CSeqMapException::GetErrCodeString(), CSeqVectorException::GetErrCodeString(), CAnnotException::GetErrCodeString(), CLoaderException::GetErrCodeString(), CObjmgrUtilException::GetErrCodeString(), CAnnotSearchLimitException::GetErrCodeString(), CPrefetchFailed::GetErrCodeString(), CPrefetchCanceled::GetErrCodeString(), CInvalidDataException::GetErrCodeString(), CGeneInfoException::GetErrCodeString(), CCDDClientException::GetErrCodeString(), CPSG_Exception::GetErrCodeString(), CCassandraException::GetErrCodeString(), CIdMapperException::GetErrCodeString(), CSerialException::GetErrCodeString(), CUnassignedMember::GetErrCodeString(), CSerialFacetException::GetErrCodeString(), CRPCClientException::GetErrCodeString(), CSrzException::GetErrCodeString(), CBGZFException::GetErrCodeString(), CDiffException::GetErrCodeString(), CCacheException::GetErrCodeString(), CQueryParseException::GetErrCodeString(), CRandomException::GetErrCodeString(), CCRowReaderStream_IANA_CSV_Exception::GetErrCodeString(), CCRowReaderStream_IANA_TSV_Exception::GetErrCodeString(), CSeqUtilException::GetErrCodeString(), CSyncQueueException::GetErrCodeString(), CThreadPoolException::GetErrCodeString(), CUtilException::GetErrCodeString(), CIOException::GetErrCodeString(), CEofException::GetErrCodeString(), CBlockingQueueException::GetErrCodeString(), CGetPasswordFromConsoleException::GetErrCodeString(), CRegexpException::GetErrCodeString(), NAutomation::CAutomationException::GetErrCodeString(), CAppHitFilterException::GetErrCodeString(), CUvBaseException::GetErrCodeString(), CSplignAppException::GetErrCodeString(), CProjBulderAppException::GetErrCodeString(), CSeq_id_MapperException::GetErrCodeString(), CDatatoolException::GetErrCodeString(), CNotFoundException::GetErrCodeString(), CAmbiguiousTypes::GetErrCodeString(), CAmbiguousDateException::GetErrCodeString(), CValidErrorFormat::GetFeatureBioseqLabel(), CDataLoader::GetGiFound(), SNetStorage_NetCacheBlob::GetInfo(), SNetScheduleAPIImpl::GetJobStatus(), SNetCacheAPIImpl::GetPartReader(), SNetICacheClientImpl::GetReadStreamPart(), GetReplyMessageProperties(), CDataLoader::GetSequenceHashFound(), CDataLoader::GetSequenceTypeFound(), CObjectIStreamAsnBinary::GuessDataType(), SNetServiceImpl::IterateUntilExecOK(), CCgi2RCgiApp::ListenJobs(), CMainLoopThread::Main(), NDirectNetStorageImpl::CObj::Meta(), CNetScheduleHandler::OnMessage(), CReader::OpenInitialConnection(), CAlignSort::SAlignExtractor::operator()(), CCassConnection::Perform(), CReadDispatcher::Process(), CDataTool::ProcessData(), CCassandraFullscanWorker::ProcessQueryResult(), CGridCgiApplication::ProcessRequest(), SNetICacheClientImpl::ReadCurrentBlobNotOlderThan(), SNetServerMultilineCmdOutputImpl::ReadLine(), CMemberInfoFunctions::ReadWithDefaultMemberX(), CMemberInfoFunctions::ReadWithSetFlagMember(), SNetStorageObjectRPC::Remove(), CAsnvalThreadState::ReportReadFailure(), CLocalBlast::Run(), CFlatFileExportJob::Run(), CBlastFormatterApp::Run(), CBlastFormatterVdbApp::Run(), CCatenatedPresenter::Run(), CSplign::Run(), CMultiAligner::Run(), CBlastInputDemoApplication::Run(), s_CalcGumbelParams(), s_ExportSearchStrategy(), s_PopulateScores(), SetupSubjects_OMF(), CNetScheduleAdmin::ShutdownServer(), NDirectNetStorageImpl::CFileTrack::StartRead(), CCgi2RCgiApp::SubmitJob(), SNetServerImpl::TryExec(), SNetServerInPool::TryExec(), CCassBlobWaiter::Wait(), CNetScheduleNotificationHandler::WaitForJobCompletion(), CMakeBlastDBApp::x_AddSeqEntries(), CRPCClient_Base::x_Ask(), SGridWorkerNodeImpl::x_ClearNode(), SNetScheduleAPIImpl::x_ClearNode(), CJobCommitterThread::x_CommitJob(), CDataSource::x_GetSeqMatch(), CNetStorageHandler::x_OnMessage(), CNetStorageHandler::x_OptionalExpirationUpdate(), CNetStorageHandler::x_ProcessGetObjectInfo(), CNetScheduleHandler::x_ProcessMsgQueue(), CNetStorageHandler::x_ProcessRelocate(), CNetStorageHandler::x_ProcessSetExpTime(), CNcbiDiag::x_Put(), CBGZFFile::x_ReadBlock(), CUpdateMultipleSeq_Input::x_ReadFromStream(), CUpdateSeq_Input::x_ReadFromStream(), CMagicBlast::x_Run(), SWorkerNodeJobContextImpl::x_RunJob(), SOfflineJobContextImpl::x_RunJob(), CSplign::x_RunOnCompartment(), and CSrcChkApp::xTryProcessIdFile().

◆ GetErrCode() [4/8]

TErrCode CCoreException::GetErrCode ( void  ) const
inline

◆ GetErrCode() [5/8]

TErrCode CInvalidParamException::GetErrCode ( void  ) const
inline

Definition at line 1516 of file ncbiexpt.hpp.

Referenced by CInvalidParamException::GetErrCodeString().

◆ GetErrCode() [6/8]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
TErrCode CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrCode ( void  ) const
inline

◆ GetErrCode() [7/8]

template<class TBase >
TErrCode CErrnoTemplException< TBase >::GetErrCode ( void  ) const
inline

Definition at line 1693 of file ncbiexpt.hpp.

◆ GetErrCode() [8/8]

template<class TBase >
TErrCode CErrnoTemplException_Win< TBase >::GetErrCode ( void  ) const
inline

Definition at line 1723 of file ncbiexpt.hpp.

Referenced by CFileErrnoException::GetErrCodeString().

◆ GetErrCodeString() [1/7]

const char * CLastErrorAdapt::GetErrCodeString ( int  errnum)
static

Definition at line 826 of file ncbiexpt.cpp.

References CUtf8::AsUTF8(), NULL, s_TlsErrorMessage, s_TlsErrorMessageCleanup(), and tmp.

Referenced by operator<<().

◆ GetErrCodeString() [2/7]

const char * CException::GetErrCodeString ( void  ) const
virtual

Get error code interpreted as text.

Reimplemented in CAmbiguousDateException, CAmbiguiousTypes, CNotFoundException, CDatatoolException, CSeq_id_MapperException, CProjBulderAppException, CSplignAppException, CUvBaseException, CAppNWAException, CAppHitFilterException, NAutomation::CAutomationException, CRegexpTemplateTesterException, CRegexpException, CInvalidConversionException, CGetPasswordFromConsoleException, CBlockingQueueException, CEofException, CIOException, CUtilException, CThreadPoolException, CSyncQueueException, CSeqUtilException, CCRowReaderStream_IANA_TSV_Exception, CCRowReaderStream_IANA_CSV_Exception, CRandomException, CQueryParseException, CCacheException, CDiffException, CTarException, CCompressionException, CArchiveException, CChecksumException, CAlignRangeCollException, CBGZFException, CSrzException, CRPCClientException, CSerialFacetException, CInvalidChoiceSelection, CUnassignedMember, CSerialException, CModReaderException, CIdMapperException, CBadResiduesException, CCassandraException, CPSG_Exception, CFlatException, CCDDClientException, CGeneInfoException, CInvalidDataException, CUnsupportedEditSaverException, CSplitException, CPrefetchCanceled, CPrefetchFailed, CAnnotSearchLimitException, CObjmgrUtilException, CBlobStateException, CLoaderException, CAnnotException, CSeqVectorException, CSeqMapException, CObjMgrException, CAssemblyParserException, CGridRPCBaseClientException, CSeqTableException, CSeqLocException, CSeqIdException, CSeqAnnotException, CAnnotMapperException, CGCServiceException, variation::CHgvsParser::CHgvsParserException, CEUtilsException, CFeatFilterQueryException, CPhyloTreeException, CSeqUpdateException, CQueryExecException, CSQLITE3_ICacheException, CSDB_Exception, CSQLITE_Exception, CRequestRateControlException, CPluginManagerException, CTimeException, CObjectException, CConditionVariableException, CMutexException, CFileException, CErrnoTemplException< CCoreException >, CErrnoTemplExceptionEx< CCoreException, NCBI_NS_NCBI::NcbiErrnoCode, NCBI_NS_NCBI::NcbiErrnoStr >, CInvalidParamException, CCoreException, CExecException, CArgumentsException, CArgHelpException, CArgException, CAppException, CUrlException, CParamException, CHttpCookieException, CConfigException, CInterProcessLockException, CBlobStorageException, CNetSrvConnException, CNSClientFactoryException, CNSProtoParserException, CNetServiceException, CGridWorkerNodeException, CStringOrBlobStorageRWException, CGridClientException, CHttpSessionException, CAlgoFeatureGeneratorException, CGumbelParamsException, CGeneralScoreMatrixException, CInputException, CRemoteBlastException, CPssmEngineException, CBlastException, CBlastSystemException, CIndexedDbException, CAlgoAlignUtilException, CAlgoAlignException, CAlnMultiCGIException, CBlastHitMatrixCGIException, NWinHook::CWinHookException, CPubseqGatewayUVException, CPubseqGatewayException, CNetStorageGCException, CNetStorageServerException, CHgvsVariantException, CVariationValidateException, CVariationIrepException, variation_ref::CHgvsParser::CHgvsParserException, CScorePValuesException, CSeqSubSplitException, CGffDeconcatException, CManifestException, CObjWriterException, CMaskReader::Exception, CIpgStorageException, CBlastServicesException, CWriteDBException, CMultisourceException, CSeqDBException, CUser_object::CRefGeneTrackingException, COpenViewManager::COVMException, CNetStorageException, CNetScheduleException, CNetCacheBlobTooOldException, CNetCacheException, CJsonOverUTTPException, CJsonException, CCompoundIDException, CWinMaskCountsGenerator::GenCountsException, CWinMaskCountsConverter::Exception, CWinMaskConfigException, CSeqMaskerUsetSimple::Exception, CSeqMaskerUsetHash::Exception, CSeqMaskerUsetArray::Exception, CSeqMaskerOstatOpt::Exception, CSeqMaskerOstatFactory::CSeqMaskerOstatFactoryException, CSeqMaskerOstatAscii::CSeqMaskerOstatAsciiException, CSeqMaskerOstat::CSeqMaskerOstatException, CSeqMaskerIstatOBinary::Exception, CSeqMaskerIstatOAscii::Exception, CSeqMaskerIstatFactory::Exception, CSeqMaskerIstatBin::Exception, CSeqMaskerIstatAscii::Exception, CSeqMasker::CSeqMaskerException, CMinHashException, CSequenceIStream::CSequenceIStream_Exception, CDbIndex_Exception, CIndexSuperHeader_Exception, CSearchException, CPrjStorageException, CASNCacheException, and CSRSearch::InternalException.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 444 of file ncbiexpt.cpp.

References CException::eUnknown, and CException::GetErrCode().

Referenced by CSRSearch::InternalException::GetErrCodeString(), CASNCacheException::GetErrCodeString(), CPrjStorageException::GetErrCodeString(), CSearchException::GetErrCodeString(), CIndexSuperHeader_Exception::GetErrCodeString(), CDbIndex_Exception::GetErrCodeString(), CSequenceIStream::CSequenceIStream_Exception::GetErrCodeString(), CMinHashException::GetErrCodeString(), CSeqMasker::CSeqMaskerException::GetErrCodeString(), CSeqMaskerIstatAscii::Exception::GetErrCodeString(), CSeqMaskerIstatBin::Exception::GetErrCodeString(), CSeqMaskerIstatFactory::Exception::GetErrCodeString(), CSeqMaskerIstatOAscii::Exception::GetErrCodeString(), CSeqMaskerIstatOBinary::Exception::GetErrCodeString(), CSeqMaskerOstat::CSeqMaskerOstatException::GetErrCodeString(), CSeqMaskerOstatAscii::CSeqMaskerOstatAsciiException::GetErrCodeString(), CSeqMaskerOstatFactory::CSeqMaskerOstatFactoryException::GetErrCodeString(), CSeqMaskerOstatOpt::Exception::GetErrCodeString(), CSeqMaskerUsetArray::Exception::GetErrCodeString(), CSeqMaskerUsetHash::Exception::GetErrCodeString(), CSeqMaskerUsetSimple::Exception::GetErrCodeString(), CWinMaskConfigException::GetErrCodeString(), CWinMaskCountsConverter::Exception::GetErrCodeString(), CWinMaskCountsGenerator::GenCountsException::GetErrCodeString(), CCompoundIDException::GetErrCodeString(), CJsonException::GetErrCodeString(), CJsonOverUTTPException::GetErrCodeString(), CNetCacheException::GetErrCodeString(), CNetCacheBlobTooOldException::GetErrCodeString(), CNetStorageException::GetErrCodeString(), COpenViewManager::COVMException::GetErrCodeString(), CUser_object::CRefGeneTrackingException::GetErrCodeString(), CSeqDBException::GetErrCodeString(), CMultisourceException::GetErrCodeString(), CWriteDBException::GetErrCodeString(), CBlastServicesException::GetErrCodeString(), CEditException::GetErrCodeString(), CIpgStorageException::GetErrCodeString(), CMaskReader::Exception::GetErrCodeString(), CObjWriterException::GetErrCodeString(), CManifestException::GetErrCodeString(), CGffDeconcatException::GetErrCodeString(), CSeqSubSplitException::GetErrCodeString(), CMerge_Exception::GetErrCodeString(), CViewException::GetErrCodeString(), variation_ref::CHgvsParser::CHgvsParserException::GetErrCodeString(), CVariationIrepException::GetErrCodeString(), CVariationValidateException::GetErrCodeString(), CBamException::GetErrCodeString(), CSraException::GetErrCodeString(), CHgvsVariantException::GetErrCodeString(), CNetStorageServerException::GetErrCodeString(), CNetStorageGCException::GetErrCodeString(), CPubseqGatewayException::GetErrCodeString(), CPubseqGatewayUVException::GetErrCodeString(), NWinHook::CWinHookException::GetErrCodeString(), CBlastHitMatrixCGIException::GetErrCodeString(), CAlnMultiCGIException::GetErrCodeString(), CAlgoAlignException::GetErrCodeString(), CProSplignException::GetErrCodeString(), CAlgoAlignUtilException::GetErrCodeString(), CIndexedDbException::GetErrCodeString(), CBlastSystemException::GetErrCodeString(), CBlastException::GetErrCodeString(), CPssmEngineException::GetErrCodeString(), CRemoteBlastException::GetErrCodeString(), CInputException::GetErrCodeString(), CGnomonException::GetErrCodeString(), CAlgoFeatureGeneratorException::GetErrCodeString(), CCgiCookieException::GetErrCodeString(), CCgiRequestException::GetErrCodeString(), CCgiErrnoException::GetErrCodeString(), CCgiResponseException::GetErrCodeString(), CCgiHeadException::GetErrCodeString(), CCgiSessionException::GetErrCodeString(), CCgiAppException::GetErrCodeString(), CConnException::GetErrCodeString(), CHttpSessionException::GetErrCodeString(), CServer_Exception::GetErrCodeString(), CGridClientException::GetErrCodeString(), CStringOrBlobStorageRWException::GetErrCodeString(), CGridWorkerNodeException::GetErrCodeString(), CNetServiceException::GetErrCodeString(), CNSProtoParserException::GetErrCodeString(), CNSClientFactoryException::GetErrCodeString(), CNetSrvConnException::GetErrCodeString(), CThreadedServerException::GetErrCodeString(), CBlobStorageException::GetErrCodeString(), CInterProcessLockException::GetErrCodeString(), CConfigException::GetErrCodeString(), CHttpCookieException::GetErrCodeString(), CParamException::GetErrCodeString(), CPIDGuardException::GetErrCodeString(), CUrlException::GetErrCodeString(), CUrlParserException::GetErrCodeString(), CAppException::GetErrCodeString(), CArgException::GetErrCodeString(), CArgHelpException::GetErrCodeString(), CArgumentsException::GetErrCodeString(), CExecException::GetErrCodeString(), CCoreException::GetErrCodeString(), CInvalidParamException::GetErrCodeString(), CErrnoTemplExceptionEx< CBDB_Exception, CBDB_StrErrAdapt::GetErrCode, CBDB_StrErrAdapt::GetErrCodeString >::GetErrCodeString(), CFileException::GetErrCodeString(), CFileErrnoException::GetErrCodeString(), CMutexException::GetErrCodeString(), CConditionVariableException::GetErrCodeString(), CObjectException::GetErrCodeString(), CRegistryException::GetErrCodeString(), CParseTemplException< CSeqsetException >::GetErrCodeString(), CThreadException::GetErrCodeString(), CTimeException::GetErrCodeString(), CPluginManagerException::GetErrCodeString(), CRequestRateControlException::GetErrCodeString(), CRequestContextException::GetErrCodeString(), CNcbiResourceInfoException::GetErrCodeString(), CNcbiEncryptException::GetErrCodeString(), CBDB_ErrnoException::GetErrCodeString(), CBDB_LibException::GetErrCodeString(), CBDB_VolumesException::GetErrCodeString(), CSQLITE_Exception::GetErrCodeString(), CDB_Exception::GetErrCodeString(), CSDB_Exception::GetErrCodeString(), CVariantException::GetErrCodeString(), CSQLITE3_ICacheException::GetErrCodeString(), CProjectServiceException::GetErrCodeString(), CPluginException::GetErrCodeString(), CMacroParseException::GetErrCodeString(), CQueryExecException::GetErrCodeString(), COpenGLException::GetErrCodeString(), CSeqUpdateException::GetErrCodeString(), CColumnarVCFException::GetErrCodeString(), CVCFDataException::GetErrCodeString(), CPhyloTreeException::GetErrCodeString(), CFeatFilterQueryException::GetErrCodeString(), CHTMLException::GetErrCodeString(), variation::CHgvsParser::CHgvsParserException::GetErrCodeString(), CGeneralParseException::GetErrCodeString(), CAnnotMapperException::GetErrCodeString(), CSeqAnnotException::GetErrCodeString(), CSeqalignException::GetErrCodeString(), CSeqIdException::GetErrCodeString(), CSeqLocException::GetErrCodeString(), CSeqsetParseException::GetErrCodeString(), CSeqTableException::GetErrCodeString(), CGridRPCBaseClientException::GetErrCodeString(), CAssemblyParserException::GetErrCodeString(), CObjMgrException::GetErrCodeString(), CSeqMapException::GetErrCodeString(), CSeqVectorException::GetErrCodeString(), CAnnotException::GetErrCodeString(), CLoaderException::GetErrCodeString(), CBlobStateException::GetErrCodeString(), CObjmgrUtilException::GetErrCodeString(), CPrefetchFailed::GetErrCodeString(), CPrefetchCanceled::GetErrCodeString(), CSplitException::GetErrCodeString(), CUnsupportedEditSaverException::GetErrCodeString(), CSeqIdFromHandleException::GetErrCodeString(), CAlnException::GetErrCodeString(), CInvalidDataException::GetErrCodeString(), CGeneInfoException::GetErrCodeString(), CCDDClientException::GetErrCodeString(), CFlatException::GetErrCodeString(), CLDS2_Exception::GetErrCodeString(), CPSG_Exception::GetErrCodeString(), CCassandraException::GetErrCodeString(), CBadResiduesException::GetErrCodeString(), CIdMapperException::GetErrCodeString(), CModReaderException::GetErrCodeString(), CObjReaderParseException::GetErrCodeString(), CSerialException::GetErrCodeString(), CUnassignedMember::GetErrCodeString(), CInvalidChoiceSelection::GetErrCodeString(), CSerialFacetException::GetErrCodeString(), CRPCClientException::GetErrCodeString(), CSrzException::GetErrCodeString(), CBGZFException::GetErrCodeString(), CChecksumException::GetErrCodeString(), CArchiveException::GetErrCodeString(), CCompressionException::GetErrCodeString(), CTarException::GetErrCodeString(), CDiffException::GetErrCodeString(), CImageException::GetErrCodeString(), CCacheException::GetErrCodeString(), CNcbiTable_Exception::GetErrCodeString(), CQueryParseException::GetErrCodeString(), CRandomException::GetErrCodeString(), CCRowReaderStream_IANA_CSV_Exception::GetErrCodeString(), CCRowReaderStream_IANA_TSV_Exception::GetErrCodeString(), CSeqUtilException::GetErrCodeString(), CSyncQueueException::GetErrCodeString(), CThreadPoolException::GetErrCodeString(), CUtilException::GetErrCodeString(), CIOException::GetErrCodeString(), CEofException::GetErrCodeString(), CBlockingQueueException::GetErrCodeString(), CGetPasswordFromConsoleException::GetErrCodeString(), CRegexpException::GetErrCodeString(), CRegexpTemplateTesterException::GetErrCodeString(), COMSSAException::GetErrCodeString(), NAutomation::CAutomationException::GetErrCodeString(), CAppHitFilterException::GetErrCodeString(), CAppNWAException::GetErrCodeString(), CUvBaseException::GetErrCodeString(), CSplignAppException::GetErrCodeString(), CProjBulderAppException::GetErrCodeString(), CAlignDataSourceException::GetErrCodeString(), CSeq_id_MapperException::GetErrCodeString(), CDatatoolException::GetErrCodeString(), CNotFoundException::GetErrCodeString(), CAmbiguiousTypes::GetErrCodeString(), CAmbiguousDateException::GetErrCodeString(), SFileTrackRequest::GetFileInfo(), CException::ReportStd(), CFlatGatherer::x_GatherFeaturesOnRange(), CFlatGatherer::x_GatherFeaturesOnRangeIdx(), CFlatGatherer::x_GatherFeaturesOnWholeLocation(), CFlatGatherer::x_GatherFeaturesOnWholeLocationIdx(), CNcbiDiag::x_Put(), and CException::x_ReportToDebugger().

◆ GetErrCodeString() [3/7]

const char * CCoreException::GetErrCodeString ( void  ) const
overridevirtual

◆ GetErrCodeString() [4/7]

const char * CInvalidParamException::GetErrCodeString ( void  ) const
overridevirtual

Translate from an error code value to its string representation.

Reimplemented from CException.

Definition at line 770 of file ncbiexpt.cpp.

References CInvalidParamException::eInvalidCharacter, CInvalidParamException::eUndefined, CInvalidParamException::GetErrCode(), and CException::GetErrCodeString().

◆ GetErrCodeString() [5/7]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
virtual const char* CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrCodeString ( void  ) const
inlineoverridevirtual

◆ GetErrCodeString() [6/7]

template<class TBase >
virtual const char* CErrnoTemplException< TBase >::GetErrCodeString ( void  ) const
inlineoverridevirtual

Translate from the error code value to its string representation.

Reimplemented from CErrnoTemplExceptionEx< TBase, NCBI_NS_NCBI::NcbiErrnoCode, NCBI_NS_NCBI::NcbiErrnoStr >.

Reimplemented in CExecException, and CCgiErrnoException.

Definition at line 1693 of file ncbiexpt.hpp.

◆ GetErrCodeString() [7/7]

template<class TBase >
virtual const char* CErrnoTemplException_Win< TBase >::GetErrCodeString ( void  ) const
inlineoverridevirtual

Translate from the error code value to its string representation.

Reimplemented from CErrnoTemplExceptionEx< TBase, NCBI_NS_NCBI::CLastErrorAdapt::GetErrCode, NCBI_NS_NCBI::CLastErrorAdapt::GetErrCodeString >.

Reimplemented in CFileErrnoException.

Definition at line 1723 of file ncbiexpt.hpp.

◆ GetErrCodeVal()

TErrCodeVal CExceptionArgs_Base::GetErrCodeVal ( void  ) const
inline

Definition at line 794 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_ErrCode.

Referenced by CExceptionArgs< TErrCode >::GetErrCode().

◆ GetErrno()

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
int CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrno ( void  ) const
inlinenoexcept

◆ GetFile()

const string& CException::GetFile ( void  ) const
inline

Get file name used for reporting.

Definition at line 1011 of file ncbiexpt.hpp.

References CException::m_File.

Referenced by CDiagFilter::Check(), CException::ReportStd(), CNcbiDiag::x_Put(), and CException::x_ReportToDebugger().

◆ GetFlags()

TFlags CExceptionArgs_Base::GetFlags ( void  ) const
inline

Definition at line 797 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Flags.

Referenced by Console().

◆ GetFunction()

const string& CException::GetFunction ( void  ) const
inline

Get function name used for reporting.

Definition at line 1029 of file ncbiexpt.hpp.

References CException::m_Function.

Referenced by CDiagFilter::Check(), CExceptionReporterStream::Report(), CException::ReportStd(), and CNcbiDiag::x_Put().

◆ GetLast()

const CNcbiError & CNcbiError::GetLast ( void  )
static

◆ GetLine()

int CException::GetLine ( void  ) const
inline

Get line number where error occurred.

Definition at line 1032 of file ncbiexpt.hpp.

References CException::m_Line.

Referenced by CException::ReportStd(), CNcbiDiag::x_Put(), and CException::x_ReportToDebugger().

◆ GetModule() [1/2]

const string& CExceptionArgs_Base::GetModule ( void  ) const
inline

Definition at line 803 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Module.

Referenced by CException::x_InitArgs().

◆ GetModule() [2/2]

const string& CException::GetModule ( void  ) const
inline

Get module name used for reporting.

Definition at line 1017 of file ncbiexpt.hpp.

References CException::m_Module.

Referenced by CDiagFilter::Check(), CDB_Exception::OriginatedFrom(), CExceptionReporterStream::Report(), CException::ReportStd(), and CNcbiDiag::x_Put().

◆ GetMsg()

const string & CException::GetMsg ( void  ) const

Get message string.

Definition at line 461 of file ncbiexpt.cpp.

References kEmptyStr, and NULL.

Referenced by CProjectService::AddProjectView(), CTableAnnotDataSource::AddSeqLoc(), CGuiRegistry::AddSite(), CTableAnnotDataSource::AddSnpSeqLoc(), CException::AddToMessage(), AddZoomLevel(), CSplign::AlignSingleCompartment(), CModAdder::Apply(), COrgGeneralPanel::ApplyCommand(), CMiscSeqTable::ApplyTableToEntry(), BlastJSON_FormatReport(), BlastSetupPreliminarySearchEx(), BlastXML2_FormatReport(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CTreeQueryExec::CallFunction(), CMacroEngine::CallFunction(), CMacroResolver::CallFunction(), CWorkspaceAutoSaver::CheckCrash(), CVisibleRange::Clamp(), CleanupCommand(), CleanupHugeFileCommand(), CNADocSumIterator::CNADocSumIterator(), CombineWithZoomLevel(), SNetServerImpl::ConnectAndExec(), CSubAnnotationPanel::Create5ColFeatTable(), createAnnot(), CTableAnnotDataSource::CreateFeature(), AlignmentSet::CreateFromMultiple(), CEntrezDB::CreateGene_Gene(), CEntrezDB::CreateGeneSet_Gene(), CAlignCleanup::CreatePairwiseFromMultiple(), CAlnMultiModel::CreateRows(), CGlShader::CreateShader(), CTableAnnotDataSource::CreateSnpFeature(), CTableAnnotDataSource::CreateSnps(), CSequenceTrackFactory::CreateTracks(), CVCFVariantList::CVCFVariantList(), CVCFVariantList::DeserializeAndCheck(), AlignmentUtility::DoLeaveNOut(), AlignmentUtility::DoLeaveOneOut(), CAlgoToolManagerBase::DoTransition(), COpenViewManager::DoTransition(), CBLASTToolManager::DoTransition(), CAutoColValidatortaxid::DoValidate(), CAutoColValidatororgname::DoValidate(), CAutoColValidatorsubsource::DoValidate(), CAutoColValidatorsubtype::DoValidate(), CAutoColValidatorseqid::DoValidate(), CAutoColValidatordate::DoValidate(), CAutoColValidatorcountry::DoValidate(), CAlignGlyph::DrawPWAlignElem(), CEditingBtnsPanel::EditFeatureEvidence(), CEditingBtnsPanel::EditFeatureLocation(), CTableQueryExec::EvalNext(), CTreeQueryExec::EvalNext(), CQueryFuncPromoteEq::Evaluate(), CQueryFuncPromoteIn::Evaluate(), NAutomation::CAutomationObject::ExecNew(), C5ColObjectLoader::Execute(), CAgpObjectLoader::Execute(), CAssemblyObjectLoader::Execute(), CBedObjectLoader::Execute(), CFastaObjectLoader::Execute(), CGBFlatFileObjectLoader::Execute(), CGBObjectLoader::Execute(), CGffObjectLoader::Execute(), CPhyObjectLoader::Execute(), CPslObjectLoader::Execute(), CRMObjectLoader::Execute(), CTextAlignObjectLoader::Execute(), CVcfObjectLoader::Execute(), CWigObjectLoader::Execute(), CUndoManager::Execute(), CTcpWorker::Execute(), CProjectStorage::Exists(), CBlastDBExtractor::ExtractSeqData(), CEditingActionFlatFile::Find(), CNetCacheBlobTooOldException::GetAge(), CSGAlignmentDS::GetAlignType(), CSeqUtils::GetAssmAccs_Gi(), CSeqUtils::GetAssmIds_GI(), CSeqUtils::GetAssmIds_GIChr(), CAssemblyInfo::GetAssms_Gi(), CRemoveSequencesDlg::GetCommand(), CEditObjectSeq_desc::GetEditCommand(), CEditObjectSeq_feat::GetEditCommand(), CEditObjectSubmit_block::GetEditCommand(), CGenomicCollectionsService::GetEquivalentAssemblies(), GetFeatureFromTableId(), CGencollSvc::GetGCAssembly(), CAlignFormatUtil::GetGeneInfo(), CSeqUtils::GetGiPlacements(), CGeneGroup::GetHTMLActiveAreas(), CLayoutGroup::GetHTMLActiveAreas(), CNetScheduleGetJobImpl< CMainLoopThread::CImpl >::GetJobImmediately(), CBlobSplitterImpl::GetLength(), CSeqUtils::GetLocPlacements(), CProjectStorage::GetObject(), CProjectStorage::GetProject(), CRemoteBlast::GetResultSet(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg(), CAlignFormatUtil::GetSeqLinkoutInfo(), CVcfTrackFactory::GetSettings(), CFeatGlyph::GetSignature(), CCgi2RCgiApp::GetStatus(), CFlatFileField::GetVal(), CNetCacheBlobTooOldException::GetVersion(), CCleanupApp::HandleSubmitBlock(), CFeatureFilter::Init(), AlignmentUtility::Init(), CPhyTreeView::InitView(), CSeqTextView::InitView(), CViewGraphic::InitView(), CVcfTableView::InitView(), CRemoveUnindexedFeatures::IsLocationUnindexed(), SNetServiceImpl::IterateUntilExecOK(), CTextPanel::Load(), CMultiReader::LoadDescriptors(), CwxTableListCtrl::LoadTableSettings(), CReloadPublications::LookUpByPmid(), CDoiLookup::LookupIsojta(), CSeq_loc_Mapper_Base::Map(), CVisibleRange::Match(), CDB_Exception::Message(), CMacroEditingActionPanel::OnActionTreeItemChanged(), CSelectFeatureDlg::OnButtonLoadFile(), CSelectFeatureDlg::OnButtonSaveFile(), CIndexerAppModeExtension::OnCloseWorkspace(), CGridWidget::OnCopy(), CApplyRNAITSDlg::OnCtrlFromKillFocus(), CApplyRNAITSDlg::OnCtrlToKillFocus(), CValidateFrame::OnDone(), CAlnMultiWidget::OnDSChanged(), CMacroCompoundConstraintPanel::OnEditConstraint(), CCgiRequestProcessor::OnException(), CAttribTableDelimitersPanel::OnExportBtnClick(), CGridWidget::OnExportToCSV(), CSelectFeatureDlg::OnFeatureEdit(), CCrossAlnDemoDlg::OnFileClick(), CAlignMultipleDemoDlg::OnFileClick(), CHitMatrixDemoDlg::OnFileClick(), CUpdateSeq_Dlg::OnIdle(), CAlignTabExportPage2::OnIdle(), CAuthorNamesPanel::OnImportAuthorsAffiliationHyperlinkClicked(), CSubAnnotationPanel::OnImportFeatTableClick(), CPhyloTreeWidget::OnLoadAttributes(), CFlatFileDemoDlg::OnLoadFileClick(), CNetScheduleHandler::OnMessage(), CAgpValidateReader::OnObjectChange(), CSubPrep_panel::OnSaveBtnClick(), CMacroFlowEditor::OnSaveCopies(), CTableXformPanel::OnSaveImportParmsClick(), CDataMiningPanel::OnSearchFinished(), CGenBankUIDataSource::Open(), CMacroFlowEditor::OpenEditor(), CAppDialogs::OpenViewlDialog(), CCheckMsg::operator()(), CVisitorAccumulateProperty::operator()(), CFeatureFilter::Pass(), CSequenceEditingEventHandler::PrepareSeqSubmit(), CBiosampleChkApp::ProcessAsnInput(), CBiosampleChkApp::ProcessBioseqHandle(), CBiosampleChkApp::ProcessList(), CGlCgiImageApplication::ProcessRequest(), CEntrezDB::Query(), CPsiBlastValidate::QueryFactory(), CMacroEngine::ReadAndParseMacros(), CMacroEngineParallel::ReadAndParseMacros(), CColumnarVCFReader::ReadData(), CBlastInputReader::ReadOneSeq(), CHgvsReader::ReadSeqAnnot(), CColumnarVCFReader::ReadVariantsForChrs(), CSmartFileTextToolbar::ReallyDone(), CUndoManager::Redo(), CObjectManager::RegisterDataLoader(), CVCFVariantList::RemoveSerializedOutput(), CAlnVecRow::RenderColumn(), CAlnMultiPane::RenderVectorGraphics(), CException::ReportStd(), CBlastPrelimSearch::Run(), CAsnExportJob::Run(), CDataLoadingAppJob::Run(), CProjectServiceTestJob::Run(), CAlignTabExportJob::Run(), CNetBlastSubmittingJob::Run(), CNetBlastMonitoringJob::Run(), CFastaAlignExportJob::Run(), CPhyExportJob::Run(), C5ColExportJob::Run(), CAgpExportJob::Run(), CFastaExportJob::Run(), CFlatFileExportJob::Run(), CGffExportJob::Run(), CGtfExportJob::Run(), CWiggleExportJob::Run(), CEditAppJob::Run(), CBuildAlnVecJob::Run(), CBuildSparseAlnJob::Run(), CTableDataSUCJob::Run(), CTableDataValidateJob::Run(), CTextRetrieveJob::Run(), CBlastDBCmdApp::Run(), CBlastVdbCmdApp::Run(), CGridCommandLineInterfaceApp::Run(), CComponentIDToolApp::Run(), CTableDataVcfJob::Run(), CFlatFileSequenceListJob::Run(), CTax4BlastDemo::Run(), CAnnotWriterApp::Run(), CDiscRepApp::Run(), CTbl2AsnApp::Run(), CSplign::Run(), CMultiAligner::Run(), CBlastInputDemoApplication::Run(), CBlastKmerBuildIndexApplication::Run(), CVDBBlastnApp::Run(), CVDBTblastnApp::Run(), CTAbleValApp::Run(), CTestApplication::Run(), CDbCopyApp::Run(), s_AttachAnnotToScope(), s_AttachEntryToScope(), s_CalculateMatchingColumns(), s_Create5ColFeatTable(), s_DetachAnnotFromScope(), s_DetachEntryFromScope(), s_DoSmartProcessing(), CMacroFunction_LookupPub::s_GetArticleFromEntrezById(), s_GetDBTree(), s_GetExceptionText(), s_GetGeneWeight(), s_GetPubImprint(), s_InitializeViralMap(), CAdjustForConsensusSpliceSite::s_IsAdjustedSpliceSitePairOK(), s_LoadSeqAnnot(), CCassQueryCbRef::s_OnFutureCb(), s_ParseErrCodeInfoStr(), s_ProcessSeqIDsForV5(), s_ReadVCFAssembly(), s_SearchInSeqText(), CSubmissionWizard::SaveFile(), CSequenceEditingEventHandler::SaveSubmissionFile(), CwxTableListCtrl::SaveTableSettings(), CProjectService::SaveWorkspace(), CPkgManager::ScanPackages(), CSeqGraphicPane::SelectSeqLoc(), CVCFVariantList::SerializeVariantData(), CBedReader::SetAutoSql(), CBlastAppArgs::SetOptions(), CBlastAppArgs::SetOptionsForSavedStrategy(), CMultiAligner::SetQueries(), CBlastDBExtractor::SetSeqId(), SetupForUpdate(), SetupQueries_OMF(), SetupSubjects_OMF(), sGetMessageAndReport(), ShowFeedbackDialog(), CSequenceEditingEventHandler::SplitCDSwithTooManyXs(), CMacroFunction_UpdateProteinSeqs::TheFunction(), Translate(), CAlnMultiPane::TTHH_GetTooltip(), CUndoManager::Undo(), CMacroEditor::Update(), CSeqUpdateWorker::UpdateMultipleSequences(), CSeqUpdateWorker::UpdateSingleSequence(), CSeqUpdateWorker::UpdateSingleSequence_Ext(), CMolTypeValidator::Validate(), CGenomicCollectionsService::ValidateChrType(), CAsnvalThreadState::ValidateInput(), CAsnvalThreadState::ValidateOneFile(), CAsnvalThreadState::ValidateWorker(), CNetScheduleNotificationHandler::WaitForJobCompletion(), CGff3Writer::WriteAlign(), CPslWriter::WriteAlign(), CTableAnnotDataSource::WriteAsn(), WriteBlastSeqidlistFile(), CTableXformPanel::x_AddLocations(), CCachedTaxon3::x_AddReplyToCache(), CMSAToolJob::x_AddTreeProjectItem(), CMacroEngine::x_AppendToLibrary(), CMacroEngineParallel::x_AppendToLibrary(), CLocalFileRestorer::x_AttachNewObject(), CCleanupApp::x_BasicAndExtended(), CFileLoadWizard::x_CheckFormatConflict(), CAlignCleanup::x_Cleanup_AlignVec(), CAlignCleanup::x_Cleanup_AnchoredAln(), CUIDataSourceService::x_CloseDataSources(), CJobCommitterThread::x_CommitJob(), CCmdCleanup::x_CreateActionCmd(), CTableXformPanel::x_CreateFeatures(), CBLASTSeqToolJob::x_CreateProjectItems(), CMergeAlignmentsJob::x_CreateProjectItems(), CMSAToolJob::x_CreateProjectItems(), CCleanupJob::x_CreateProjectItems(), CVcfLoadingJob::x_CreateProjectItems(), CWindowMaskerJob::x_CreateProjectItems(), CLocalFileRestorer::x_DetachOrigObject(), CDisplaySeqalign::x_DisplayGeneInfo(), CImportFeatTable::x_DoImportCDS(), CProjectTask::x_DoSaveUserSelected(), CComponentSearchJob::x_DoSearch(), COpenViewDlg::x_DoTransition(), COpenDlg::x_DoTransition(), CRunToolDlg::x_DoTransition(), CAlignGlyph::x_DrawMultiAlign(), CBuildDatabase::x_EndBuild(), CSnpJob::x_Execute(), CSGAlignmentJob::x_Execute(), CSGSeqGraphJob::x_Execute(), CBinsJob::x_Execute(), CHapmapJob::x_Execute(), CLDBlockJob::x_Execute(), CEpigenomicsJob::x_Execute(), CSGFeatureJob::x_Execute(), CGeneModelFeatJob::x_Execute(), CBatchFeatJob::x_Execute(), CSGCalcFeatHistJob::x_Execute(), CSGSegmentMapJob::x_Execute(), CSGSegmentSmearJob::x_Execute(), CVcfFeatureJob::x_Execute(), CQueryParsePanel::x_ExecuteQuery(), CAssemblyInfo::x_FilterTaxIds(), CGenomicCollectionsService::x_FindAssembliesBySequences(), CConfigRegistry::x_Get(), CSGAlignmentJob::x_GetAlignments(), CNAUtils::x_GetAllGIs(), CNAUtils::x_GetAllNAIds(), CNAUtils::x_GetAllNAIdsWithContext(), CAssemblyInfo::x_GetAssmInfo(), CCreateGeneModelTask::x_GetCommand(), CObjectIndex::x_GetFeatureCode(), CDisplaySeqalign::x_GetLinkout(), CNAUtils::x_GetNAEntrezLinks(), CNAUtils::x_GetNAId(), CRelaxedLookupDlg::x_GetPubIds(), CRelaxedLookupDlg::x_GetPubIdsEutils(), CBlastHitMatrixCGIApplication::x_GetSeqAnnot(), CFeatureTrackFactory::x_GetSettings(), CVarTrackFactory::x_GetSettings(), CConfigRegistry::x_HasEntry(), python::CError::x_Init(), TestUtil::CBlastOM::x_InitBlastDatabaseDataLoader(), CBlastScopeSource::x_InitBlastDatabaseDataLoader(), CBlastScopeSource::x_InitGenbankDataLoader(), TestUtil::CBlastOM::x_InitGenbankDataLoader(), CBlastHitMatrix::x_InitGraphics(), CQueryParsePanel::x_IsValidQuery(), CSeqUpdateWorker::x_LaunchSingleUpdateSequence(), CSGAlignStatJob::x_LoadAlignments(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CNetBLASTUIDataSource::x_LoadJobDescriptors(), CColumnarVCFReaderApp::x_LoadSerializedData(), CFeaturePanel::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CUIToolRegistry::x_LoadTemplateTool(), CColumnarVCFReaderApp::x_LoadVCFFile(), CProjectService::x_LoadWorkspace(), CSeq_id_Resolver__ChrNamesFromGC::x_MapLoc(), CMacroErrorDlg::x_MergeExceptionMessages(), CUIDataSourceService::x_OpenDataSources(), CFeatureTrack::x_ParseSettings(), CIntronTrack::x_ParseSettings(), CVcfTrack::x_ParseSettings(), CFindOverlapJob::x_PrepareAligner(), CBlastDBCmdApp::x_ProcessBatchEntry_NoDup(), CNetScheduleHandler::x_ProcessMsgBatchHeader(), CNetScheduleHandler::x_ProcessMsgBatchJob(), CNetScheduleHandler::x_ProcessMsgBatchSubmit(), CNetScheduleHandler::x_ProcessMsgQueue(), CNetScheduleHandler::x_ProcessMsgRequest(), CBlastDBCmdApp::x_ProcessSearchRequest(), CBlastVdbCmdApp::x_ProcessSearchRequest(), CGridClient::x_ProlongBlobLifetime(), CUpdateMultipleSeq_Input::x_ReadFromStream(), CUpdateSeq_Input::x_ReadFromStream(), CUIToolRegistry::x_ReadToolInfo(), CUpdateSeq_Input::x_ReadUpdateSeq_ASN(), CUpdateMultipleSeq_Input::x_ReadUpdateSeqs_ASN(), CUpdateMultipleSeq_Input::x_ReadUpdateSeqs_Fasta(), CColumnarVCFReaderApp::x_ReadVCFBlob(), CAlnMultiPane::x_Render(), CAlnMultiRenderer::x_Render(), CBlastHitMatrix::x_RenderImage(), CAlnMultiRenderer::x_RenderRow(), CFastaSeqBlockItem::x_RenderText(), CBioseqEditor::x_ReportError(), CException::x_ReportToDebugger(), CWorkspaceAutoSaver::x_RestoreWorkspace(), CNetBlastSubmittingJob::x_Run(), SOfflineJobContextImpl::x_RunJob(), CSmartFileTextToolbar::x_Save(), CNetBLASTUIDataSource::x_SaveJobDescriptors(), CAssemblyInfo::x_SearchIds(), CCDSTranslationPanel::x_SetLocationForProtein(), CProSplignJob::x_SetupAndRuntBlastn(), CQueryParsePanel::x_StartQueryJob(), CAttribTableColumnIdPanel::x_TableReaderCommon(), CAttribTableColumnIdPanel::x_TableReaderMacro(), CHugeFile::x_TryOpenMemoryFile(), CAssemblyListPanel::x_UpdateSearchTerm(), CUpdateMultiSeq_Dlg::x_UpdateSelected(), CSeqEditPackage::x_UpdateValAuxFile(), CBamLoadOptionPanel::x_ValidateInput(), CAssemblyInfo::x_ValidateTaxId(), CSGSegmentSmearJob::x_WriteToCache(), CFastaOstreamEx::x_WriteTranslatedCds(), CAnnotWriterApp::xInitOutputStream(), CAnnotWriterApp::xReadObject(), CBedGraphWriter::xWriteAnnotFeatureTable(), CBedGraphWriter::xWriteAnnotGraphs(), CAlnVecMultiDataSource::~CAlnVecMultiDataSource(), CBDB_RangeMap< TBV >::~CBDB_RangeMap(), CSparseMultiDataSource::~CSparseMultiDataSource(), and CWriteDB_Impl::~CWriteDB_Impl().

◆ GetPredecessor()

const CException* CException::GetPredecessor ( void  ) const
inline

◆ GetRequestContext()

CRequestContext & CException::GetRequestContext ( void  ) const

Get the request context in which the exception was thrown.

Definition at line 472 of file ncbiexpt.cpp.

References CException::m_RequestContext.

Referenced by CException::x_Init(), and CNcbiApplicationAPI::x_TryMain().

◆ GetRetriable() [1/2]

ERetriable CExceptionArgs_Base::GetRetriable ( void  ) const
inline

Definition at line 807 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Retriable.

Referenced by CException::x_InitArgs().

◆ GetRetriable() [2/2]

virtual ERetriable CException::GetRetriable ( void  ) const
inlinevirtual

Retrieve info about ability to retry an action caused the exception.

Reimplemented in CSDB_Exception.

Definition at line 1065 of file ncbiexpt.hpp.

References CException::m_Retriable.

Referenced by CSDB_Exception::GetRetriable().

◆ GetSeverity() [1/2]

TSeverity CExceptionArgs_Base::GetSeverity ( void  ) const
inline

Definition at line 800 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Severity.

Referenced by CSDB_Exception::CSDB_Exception().

◆ GetSeverity() [2/2]

EDiagSev CException::GetSeverity ( void  ) const
inline

◆ GetStackTrace()

const CStackTrace * CException::GetStackTrace ( void  ) const

Get the saved stack trace if available or NULL.

Definition at line 434 of file ncbiexpt.cpp.

References CompareDiagPostLevel(), CException::GetStackTraceLevel(), CException::m_Severity, CException::m_StackTrace, and NULL.

Referenced by CNcbiDiag::x_Put().

◆ GetStackTraceLevel()

EDiagSev CException::GetStackTraceLevel ( void  )
static

Get current severity level for saving and printing stack trace.

Definition at line 135 of file ncbiexpt.cpp.

Referenced by CException::GetStackTrace(), and CException::x_GetStackTrace().

◆ GetType() [1/6]

const char * CException::GetType ( void  ) const
virtual

◆ GetType() [2/6]

virtual const char* CCoreException::GetType ( void  ) const
inlineoverridevirtual

◆ GetType() [3/6]

virtual const char* CInvalidParamException::GetType ( void  ) const
inlineoverridevirtual

Get class name as a string.

Reimplemented from CException.

Definition at line 1516 of file ncbiexpt.hpp.

◆ GetType() [4/6]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
virtual const char* CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetType ( void  ) const
inlineoverridevirtual

◆ GetType() [5/6]

template<class TBase >
virtual const char* CErrnoTemplException< TBase >::GetType ( void  ) const
inlineoverridevirtual

Get type of class.

Reimplemented from CErrnoTemplExceptionEx< TBase, NCBI_NS_NCBI::NcbiErrnoCode, NCBI_NS_NCBI::NcbiErrnoStr >.

Definition at line 1693 of file ncbiexpt.hpp.

◆ GetType() [6/6]

template<class TBase >
virtual const char* CErrnoTemplException_Win< TBase >::GetType ( void  ) const
inlineoverridevirtual

◆ HasMainText()

bool CException::HasMainText ( void  ) const
inline

Check if exception has main text in the chain.

Definition at line 1044 of file ncbiexpt.hpp.

References CException::m_MainText.

Referenced by CNcbiDiag::x_Put().

◆ Info()

void Info ( CExceptionArgs_Base args)
inline

Definition at line 1185 of file ncbiexpt.hpp.

References eDiag_Info, and CExceptionArgs_Base::SetSeverity().

Referenced by CDockManager::ActivateClients(), CUIDataSourceService::AddDataSource(), CLDS2_Database::AddFile(), CIndexedDb_New::AddIndexInfo(), CProjectService::AddProjectView(), CBamFileInfo::AddRefSeq(), CCSRAFileInfo::AddRefSeq(), SAccGuide::AddRule(), CAppTaskService::AddTask(), AlignmentDisplay::AlignmentDisplay(), AlignmentSet::AlignmentSet(), CUpdateMultipleSeq_Input::AppendOld_UpdateSeqPairs(), CDockManager::ApplyLayout(), CCassQueryList::AttachSlot(), CMSAToolJob::BeforeRun(), CGRPCServerCallbacks::BeginRequest(), BlastHitList2SeqAlign_OMF(), BOOST_AUTO_TEST_CASE(), CSearch< LEGACY, NHITS >::CalcNSort(), CEquivRange::CalcRelative(), CUpdateSeq_Input::CalculateAlignmentForUnitTest(), CAlignSort::CAlignSort(), CTreeQueryExec::CallFunction(), CMacroEngine::CallFunction(), CMacroResolver::CallFunction(), CAppTaskService::CancelTask(), CCassBlobWaiter::CanRestart(), CAV_DisplayMultiple(), CBDB_SplitCursor< BDB_SplitStore, BDB_Vol >::CBDB_SplitCursor(), CBlastDbBioseqSource::CBlastDbBioseqSource(), CBlastLMDBManager::CBlastEnv::CBlastEnv(), CCSraDb_Impl::CCSraDb_Impl(), CGBDocument::CGBDocument(), CBDB_Env::CleanLog(), CBDB_Cache::Close(), CNetBLASTUIDataSource::Close(), CWriteDB_Impl::Close(), CBam2Seq_graph::CollectCoverage(), CBam2Seq_graph::CollectRawAccessCoverage(), CNcbiTestApplication::CollectTestUnit(), CUnorderedSplitter::CombineAlignments(), CBDB_RawFile::CompactEx(), CompressAssembly(), CLDS2_Database::Create(), CSubAnnotationPanel::Create5ColFeatTable(), CBamRefSeqInfo::CreateChunks(), CPSG_Blob_Task::CreateLoadedChunks(), CTableReaderMacro::CreateMacros(), CGBDocument::CreateProjectScope(), CSeqDBImpl::CSeqDBImpl(), CTextPanel::CTextPanel(), CVCFVariantList::CVCFVariantList(), DbIndexInit(), CGlFeedbackFont::DecodeText(), DeleteBlastDb(), CLDS2_Database::DeleteFile(), CVCFVariantList::DeserializeAndCheck(), CSampleJob::Do(), CPSG_LoadChunk_Task::DoExecute(), CBDB_CheckPointThread::DoJob(), CAlgoToolManagerBase::DoTransition(), CNcbiApplicationAPI::DryRun(), AlignmentDisplay::DumpCondensed(), DumpSeqEntries(), CGlUtils::DumpState(), CDumpASNIndex::DumpTiming(), CBioseqEditor::EditSelection(), EnabledDelayBuffers(), CNcbiEnvRegMapper::EnvToReg(), CTableQueryExec::EvalNext(), CTreeQueryExec::EvalNext(), CMacroEngineParallel::Exec(), CAsnObjectLoader::Execute(), CPhyloTreeDataSource::ExecuteStringQuery(), CProjectStorage::Exists(), CSplitSeqAlignMerger::GenerateAlignments(), CInstancedAligner::GenerateAlignments(), CBlastAligner::GenerateAlignments(), CRemoteBlastAligner::GenerateAlignments(), CMergeAligner::GenerateAlignments(), CMergeTreeAligner::GenerateAlignments(), CDataTool::GenerateCode(), CLoadInfoMap< Key, Info >::Get(), CGlUtils::GetAccelerated(), CSQLITE3_Cache::GetAccessTime(), CGenomicCollectionsService::GetAssembly(), CPSGDataLoader_Impl::GetBlobByIdOnce(), CSQLITE3_Cache::GetBlobOwner(), CSNPDataLoader_Impl::GetChunkOnce(), CWGSDataLoader_Impl::GetFileInfoByGi(), CWGSDataLoader_Impl::GetFileInfoByProtAcc(), CCassConnectionFactory::GetHostPort(), CSubmissionWizard::GetInstance(), CMTreeItemDataBuilder::GetMActionType(), CGBProjectHandle::GetNextId(), CSNPDataLoader_Impl::GetOrphanAnnotRecordsOnce(), CSnpPtisClient_Impl::GetPrimarySnpTrackForAccVer(), CSnpPtisClient_Impl::GetPrimarySnpTrackForGi(), CProjectView::GetSelection(), CSQLITE3_Cache::GetSize(), CDataCrawlerCache::GetState(), CPosToIndex::GetStatistics(), CVCFVariantList::GetStatistics(), CMacroEngine::GetSynonymFilenames(), CNetBLASTUILoadManager::GetTask(), CTaxTreeDS_ObjMgr::GetTaxMap(), CFormatGuessEx::GuessFormat(), CSampleJobCleanupListener::HandleEvent(), CDB_UserHandler_Diag::HandleIt(), CSDB_UserHandler::HandleIt(), CMessageHandlerDefault::HandleMessage(), CQueryImpl::HasMoreResultSets(), NAdapterSearch::CPairedEndAdapterDetector::CConsensusPattern::InferConsensus(), CWorkbench::Init(), CFeatureFilter::Init(), CTestBMApp::Init(), CSNPFileInfo::InitializeDb(), CSetupFactory::InitializeMegablastDbIndex(), SNetCacheAPIImpl::InitiateWriteCmd(), CDataMiningService::InitService(), CProjectService::InitService(), CSelectionService::InitService(), CUIDataSourceService::InitService(), CVisibleRangeService::InitService(), CViewManagerService::InitService(), CViewGraphic::InitView(), InsertList(), CTMS_SupportedAssemblies_Client::IsAssemblySupported(), CBamRefSeqInfo::LoadAlignChunk(), CCSRARefSeqInfo::LoadAnnotAlignChunk(), CSNPSeqInfo::LoadAnnotBlob(), CSNPSeqInfo::LoadAnnotChunk(), CCSRARefSeqInfo::LoadAnnotMainChunk(), CCSRARefSeqInfo::LoadAnnotPileupChunk(), CSNPDataLoader_Impl::LoadBlob(), CWGSFileInfo::LoadBlob(), CWGSFileInfo::LoadChunk(), CNcbiApplicationAPI::LoadConfig(), CSpectrumSet::LoadDTA(), LoadFileForSubmission(), CRemoteBlast::LoadFromArchive(), CAsnObjectLoader::LoadFromStream(), CSpectrumSet::LoadMGF(), CSpectrumSet::LoadMultBlankLineDTA(), CSpectrumSet::LoadMultDTA(), CBamRefSeqInfo::LoadPileupChunk(), CCSRARefSeqInfo::LoadRanges(), CCSRAFileInfo::LoadReadsBlob(), CCSRARefSeqInfo::LoadRefSeqChunk(), CBamRefSeqInfo::LoadSeqChunk(), CObjectListWidgetSel::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CTestApplication::LoadTable(), CTableImportDataSource::LoadTable(), CUIToolRegistry::LoadTemplateToolsInfo(), LogCallback(), CTableImportColumn::LogColumnInfo(), CTableImportDataSource::LogColumnInfo(), CTableDelimiterRules::LogDelims(), CNGAlignParams::LogDump(), CTableImportDataSource::LogFixedFieldWidths(), PT::CItem::LogInstanceCount(), CDockLayoutTree::LogPost(), CDockContainer::LogPostTrees(), LogRequest(), CMacroStat::LogStart(), CMacroStat::LogStop(), CSQLITE3_Cache::CWriterThread::Main(), CConnTestThread::Main(), CFileCode::ModifiedByUser(), ILineReader::New(), OMSSACallback(), CSeqGraphicDemoDlg::OnAccClick(), CMacroAddConstraint::OnAccept(), CFrameworkDemoGUI::OnActiveClientChanged(), CFrameworkDemoGUI::OnClientAboutToClose(), CFrameworkDemoGUI::OnClientClosed(), CBioseqEditor::OnCreateBiosourceDesc(), CBioseqEditor::OnCreateBiosourceFeat(), CBioseqEditor::OnCreateDescriptor(), CBioseqEditor::OnCreateFeature(), CSeqGraphicWidget::OnDataChanged(), CFrameworkDemoGUI::OnDiagnosticsTimer(), CBioseqEditor::OnEditBiosourceDesc(), CBioseqEditor::OnEditBiosourceFeat(), CGridControlThread::OnExit(), CWorkerNodeIdleThread::OnExit(), CUpdateMultiSeq_Dlg::OnIdle(), CQueryParsePanel::OnIdle(), CAuthorNamesPanel::OnImportAuthorsAffiliationHyperlinkClicked(), CFeatureTblFr::OnJobResult(), CMixedStrands::OnJobResult(), CSubAnnotationPanel::OnJobResult(), CEditMacroDlg::OnPrintClick(), CEditMacroDlg::OnPrintParallelClick(), CBioseqEditor::OnPropagateAllFeatures(), CBioseqEditor::OnPropagateSelectedFeatures(), CTaxTreeTestDlg::OnSubmitClick(), CNetBLASTUIDataSource::Open(), CGenBankUIDataSource::Open(), CBDB_Cache::Open(), CSQLITE3_Cache::Open(), CChunkFile::OpenForWrite(), CSeqIdChunkFile::OpenForWrite(), CBDB_Cache::OpenReadOnly(), CAppDialogs::OpenViewlDialog(), visitor_paste_subtree::operator()(), CHttpCookie::Parse(), CFeatureFilter::Pass(), PatchTargetSequence(), CCassConnection::Perform(), CAppPopup::PopupURL(), CLogPerformance::Post(), CBLASTParams::PrintParams(), CReadDispatcher::Process(), CProcessor_ID2::ProcessData(), CBam2GraphApp::ProcessFile(), CGlCgiImageApplication::ProcessRequest(), CNetCacheBlobFetchApp::ProcessRequest(), CBDB_Cache::Purge(), CSQLITE3_Cache::Purge(), CGlimmerReader::Read(), CMSPeak::Read(), CSQLITE3_Cache::Read(), CMSPeak::ReadAndProcess(), CColumnarVCFReader::ReadData(), CVDBCursor::ReadElements(), CColumnarVCFReader::ReadVariantsForChrs(), CMSHit::RecordMatchesScan(), CViewManagerService::RegisterFactory(), CDataMiningService::RegisterTool(), CSGAlignmentDS::ReleaseMemory(), CFileObsolete::Remove(), CGBDocument::RemoveDataLoader(), CVCFVariantList::RemoveSerializedOutput(), ReportMemoryUsage(), CPhyloTreeDataSource::ReRootMidpoint(), CNcbiArguments::Reset(), CPluginManager< TClass >::ResolveFile(), CFrameworkDemoGUI::RestoreWindowLayout(), CDbapiSimpleApp::RetrieveData(), CSeqDBAtlas::ReturnMemoryFile(), CAsnExportJob::Run(), CDataLoadingAppJob::Run(), CProjectServiceTestJob::Run(), CAlignTabExportJob::Run(), CFastaAlignExportJob::Run(), CPhyExportJob::Run(), C5ColExportJob::Run(), CAgpExportJob::Run(), CFastaExportJob::Run(), CFlatFileExportJob::Run(), CGffExportJob::Run(), CGtfExportJob::Run(), CWiggleExportJob::Run(), CEditAppJob::Run(), CNgAlignApp::Run(), CMkIndexApplication::Run(), CReadresult::Run(), COMSSA::Run(), CSplignApp::Run(), CSeqDescrRetrievalJob::Run(), CAnnotMetaDataJob::Run(), CSampleIdleTask::Run(), SGridWorkerNodeImpl::Run(), CXcompareAnnotsApplication::Run(), CAsnCacheTestApplication::Run(), CAsnSubCacheCreateApplication::Run(), CWalkAsnCacheApplication::Run(), CBDBEnvKeeperApp::Run(), BlastdbCopyApplication::Run(), CGi2TaxIdApp::Run(), CTestApplication::Run(), CEntrez2ClientApp::Run(), CGridClientSampleApp::Run(), CRemoteAppClientSampleApp::Run(), CConvImageApp::Run(), CSubImageApp::Run(), CBDB_Env::RunBackgroundWriter(), CTableReaderMacro::RunMacro(), CDiscrepancyContext::RunTests(), s_ConvertSeverity(), s_Create5ColFeatTable(), s_CreateAlign(), s_CreateHandler(), s_CreateNAChunk(), s_DeleteDBFile(), s_DeleteMakeprofileDb(), s_Dump(), s_DumpSparse(), s_DumpZero(), CAscii85::s_Encode(), s_GetDBTree(), CApplyFeatTableTreeItemData::s_GetFunction(), CApplyCDSGeneProtTableTreeItemData::s_GetFunction(), CApplyRNATableTreeItemData::s_GetFunction(), CApplySrcTableTreeItemData::s_GetFunction(), CApplyStrCommTableTreeItemData::s_GetFunction(), CApplyPubTableTreeItemData::s_GetFunction(), CApplyDBlinkTableTreeItemData::s_GetFunction(), CApplyMolinfoTableTreeItemData::s_GetFunction(), CApplyMiscTableTreeItemData::s_GetFunction(), s_HTMLEncode(), s_InitializeSubject(), s_LoadSeqAnnot(), s_LogEnvParam(), s_Match_id(), s_SearchInSeqText(), s_UpdateLocalFile(), SAccGuide::SAccGuide(), CEditingBtnsPanel::SaveSettings(), CViewGraphic::SaveSettingsAtProject(), CPkgManager::ScanPackages(), CSearch< LEGACY, NHITS >::Search(), CCompareSeqRegions::SelectMatches(), CFeedbackReport::SendFeedback(), CGBenchService::SendFeedbackReport(), SequenceSet::SequenceSet(), CVCFVariantList::SerializeVariantData(), CSeq_id::Set(), CTableImportDataSource::SetColumnHeaderRow(), CTableImportDataSource::SetCommentChar(), CTableImportDataSource::SetFirstImportRow(), CTableImportDataSource::SetHeaderAndFirstRow(), CLoadLockSetter::SetLoaded(), CReaderRequestResult::SetLoadedAcc(), CReaderRequestResult::SetLoadedAccFromSeqIds(), CReaderRequestResult::SetLoadedBlobIds(), CReaderRequestResult::SetLoadedBlobIdsFromZeroGi(), CReaderRequestResult::SetLoadedBlobState(), CReaderRequestResult::SetLoadedBlobVersion(), CReaderRequestResult::SetLoadedGi(), CReaderRequestResult::SetLoadedGiFromSeqIds(), CReaderRequestResult::SetLoadedHash(), CReaderRequestResult::SetLoadedLabel(), CReaderRequestResult::SetLoadedLabelFromSeqIds(), CReaderRequestResult::SetLoadedLength(), CReaderRequestResult::SetLoadedSeqIds(), CReaderRequestResult::SetLoadedSeqIdsFromZeroGi(), CReaderRequestResult::SetLoadedTaxId(), CReaderRequestResult::SetLoadedType(), SetLogFile(), CSearch< LEGACY, NHITS >::SetResult(), CLoadLockSetter::SetSeq_entry(), COMSSABase::SetThreadCount(), ShowFeedbackDialog(), CWorkbench::ShutDown(), CSchedulerEngine::ShutDown(), CDataMiningService::ShutDownService(), CProjectService::ShutDownService(), CSelectionService::ShutDownService(), CVisibleRangeService::ShutDownService(), CViewManagerService::ShutDownService(), AlignmentDisplay::Squeeze(), CBDB_Cache::StartPurgeThread(), CSearchToolBase::StartSearch(), CSQLITE3_Cache::CWriterThread::Stop(), CBDB_Env::StopBackgroundWriterThread(), CBDB_Cache::StopPurgeThread(), CMacroLib::StoreSynonymList(), sx_Update(), UncomressAndCreate(), CMacroEditor::Update(), CAttribTableDelimitersPanel::UpdateDelimiters(), CTableDelimitersPanel::UpdateDelimiters(), CLDS2_Database::UpdateFile(), SPSG_Request::UpdateItem(), CSubmissionWizard::UpdateOnPageChange(), CTableXformPanel::x_AddLocations(), CNetBLASTUIDataSource::x_AutoStartMonitoring(), CBlastUsageReport::x_CheckBlastUsageEnv(), CRemoteBlast::x_CheckResultsDC(), CUIDataSourceService::x_CloseDataSources(), CGencollService::x_Connect(), CQualTableLoadManager::x_ConvertToSeqAnnot(), CTableImportWizard::x_ConvertToSeqAnnot(), CSeq_id_Resolver__ChrNamesFromGC::x_Create(), CImportFeatTable::x_CreateCommand(), CBamLoadingJob::x_CreateDataLoader(), x_CreateEmptyLocalCDDEntry(), CTableXformPanel::x_CreateFeatures(), CFrameworkDemoApp::x_CreateGUI(), CHitMatrixDataSource::x_CreateHit(), CProjectServiceTestJob::x_CreateItems(), CCleanupTool::x_CreateLoadingJob(), x_CreateLocalCDDEntryChunk(), CGBankLoadingJob::x_CreateProjectItems(), CBLASTSeqToolJob::x_CreateProjectItems(), CCreateNeedlemanWunschJob::x_CreateProjectItems(), CFindOverlapJob::x_CreateProjectItems(), CProSplignJob::x_CreateProjectItems(), CBamLoadingJob::x_CreateProjectItems(), CWindowMaskerJob::x_CreateProjectItems(), CNgAlignApp::x_CreateSequenceSet(), CProjectServiceTestJob::x_DeleteItems(), CVCFVariantsBase::x_DeserializeAllData(), CFrameworkDemoApp::x_DestroyGUI(), CProjectTask::x_DoSaveUserSelected(), CComponentSearchJob::x_DoSearch(), CRunToolDlg::x_DoTransition(), CDownloadJob::x_Download(), CDownloadJob::x_DownloadAndExtract(), CSGSegmentMapJob::x_Execute(), CVcfFeatureJob::x_Execute(), CQueryParsePanel::x_ExecuteQuery(), CDataMiningPanel::x_ExecuteSearch(), CSnpJob::x_FetchGraphs(), NAdapterSearch::CUnpairedAdapterDetector::x_FindAdapterSeed(), CWriteDB_OidList::x_Flush(), CVDBValue::x_Get(), CVDBValueFor4Bits::x_Get(), CVDBValueFor2Bits::x_Get(), CTL_LangCmd::x_GetDynamicID(), CSNPDataLoader_Impl::x_GetFileInfo(), CWGSDataLoader_Impl::x_GetFileInfo(), CSnpPtisClient_Impl::x_GetPrimarySnpTrack(), CCompareSeqRegions::x_GetPutativeMatches(), CColumnarVCFLoaderManager::x_GetRefSeqs(), CRemoteBlast::x_GetSearchResultsHTTP(), CPoolBalancer::x_GetServer(), CCorrectRNAStrandDlg::x_GetStatusSMART(), CMacroEngineParallel::x_GetThreadCount(), CBlastVdbCmdApp::x_GetVDBBlastUtil(), CHitMatrixDataSource::x_GoodSeg(), CTableImportWizard::x_GuessColumns(), CMacroWorker::x_HandleOutput(), CGlWidgetPane::x_Handlers_handle(), CWriteDB_TaxID::x_IncreaseEnvMapSize(), CWriteDB_LMDB::x_IncreaseEnvMapSize(), CGFFReader::x_Info(), CCassandraException::x_Init(), CUIDataSourceService::x_InitDataSourceTypes(), CUIDataSourceService::x_InitDefaultDataSources(), CRemoteBlast::x_InitDiskCache(), CCSRAFileInfo::x_Initialize(), CWGSFileInfo::x_Initialize(), CUnicodeToAsciiTranslation::x_Initialize(), CSeq_loc_Mapper_Base::x_InitializeLocs(), CDataCrawlerCache::x_InitICache(), CUIDataSourceService::x_InitLoadManagers(), CQueryParsePanel::x_IsValidQuery(), CwxNCBIApp::x_LoadGuiRegistry(), CNetBLASTUIDataSource::x_LoadJobDescriptors(), CPkgManager::x_LoadPackage(), CBamRefSeqInfo::x_LoadRangesCov(), CBamRefSeqInfo::x_LoadRangesScan(), CBamRefSeqInfo::x_LoadRangesStat(), CCSRARefSeqInfo::x_LoadRangesStat(), CProjectService::x_LoadWorkspace(), BlastdbCopyApplication::x_MakeDBwIDList(), CSnpJob::x_MakeHistogramFromFtable(), CProjectServiceTestJob::x_ModifyItems(), CBDB_SplitCursor< BDB_SplitStore, BDB_Vol >::x_NextVolume(), CFeaturePanel::x_OnColorIconClicked(), CFeaturePanel::x_OnDecorationIconClicked(), CFeaturePanel::x_OnLabelIconClicked(), CFeaturePanel::x_OnLayoutIconClicked(), CWorkspaceAutoSaver::x_OnSave(), CFeaturePanel::x_OnSizeIconClicked(), CUIDataSourceService::x_OpenDataSources(), CReadIndexSpeedApp::x_PreReadIndex(), CBlastVdbCmdApp::x_PrintBlastDatabaseInformation(), CProjectServiceTestJob::x_PrintItems(), CSequenceUpdater::x_PrintNewEntryIds(), CMacroCompoundConstraintPanel::x_PrintState(), CBlastVdbCmdApp::x_PrintVDBPaths(), CId2ReaderBase::x_ProcessGetBlob(), CId2ReaderBase::x_ProcessGetSplitInfo(), CMakeClusterDBApp::x_ProcessInputFile(), CPSGDataLoader_Impl::x_ReadBlobData(), CBGZFFile::x_ReadBlock(), CPSGDataLoader_Impl::x_ReadCDDChunk(), CTar::x_ReadEntryInfo(), CPagedFile::x_ReadPage(), CReader::x_ReportDisconnect(), CScope_Impl::x_ReportNewDataConflict(), CSDB_ConnectionParam::x_ReportOverride(), CSatInfoSchema::x_ResolveServiceName(), CProjectServiceTestTask::x_Run(), CNetBlastSubmittingJob::x_Run(), CInstancedAligner::x_RunAligner(), CGBDocument::x_SaveFile(), CwxNCBIApp::x_SaveGuiRegistry(), CNetBLASTUIDataSource::x_SaveJobDescriptors(), CFeatureSearchJob::x_SearchFeatures(), CVCFVariantsBase::x_SerializeData(), CSeqDBOIDList::x_Setup(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CDataLoadersUtil::x_SetupBlastDataLoader(), CDataLoadersUtil::x_SetupGenbankDataLoader(), CDataLoadersUtil::x_SetupLDS2DataLoader(), CWindowManagerService::x_ShowToolBar(), CWorkbench::x_ShutDownServices(), CDataCrawlerCache::x_StartHeartbeat(), CAlignTabExportPage2::x_StartNAAlignNamesJob(), CQueryParsePanel::x_StartQueryJob(), CSubmissionWizard::x_StepBackward(), CSubmissionWizard::x_StepForward(), CDataCrawlerCache::x_StopHeartbeat(), SGridWorkerNodeImpl::x_StopWorkerThreads(), CAttribTableColumnIdPanel::x_TableReaderMacro(), CBDB_Cache::x_TruncateDB(), CBLASTSearchOptionsPanel::x_UpdateDBCombo(), CAssemblyListPanel::x_UpdateSearchTerm(), CPkgManager::x_ValidatePackage(), CReadIndexSpeedApp::x_WalkIndex(), SGridWorkerNodeImpl::x_WNCleanUp(), CSchedulerEngine::x_WorkOnThread(), CDumpASNIndex::x_WriteBlob(), CEditObjectFeaturePropagate::xGetEditCommandAllSequences(), CUCSCRegionReader::xParseFeatureUCSCFormat(), CReader::CDebugPrinter::~CDebugPrinter(), CGBDocument::~CGBDocument(), CObjectPool< C >::~CObjectPool(), CSQLITE3_Cache::~CSQLITE3_Cache(), CTaxonCache::~CTaxonCache(), CTextPanel::~CTextPanel(), CTextRetrieveJob::~CTextRetrieveJob(), CWorkerNodeControlServer::~CWorkerNodeControlServer(), and SW::~SW().

◆ IsSetFlag()

bool CException::IsSetFlag ( EFlags  flag) const
inline

Check if the flag is set.

Definition at line 1050 of file ncbiexpt.hpp.

References CException::m_Flags.

Referenced by CNcbiDiag::x_Put().

◆ IsSetModule()

bool CExceptionArgs_Base::IsSetModule ( void  ) const
inline

Definition at line 804 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Module.

Referenced by CException::x_InitArgs().

◆ Module() [1/2]

Module::Module ( const char *  module)
inline

Definition at line 1221 of file ncbiexpt.hpp.

◆ Module() [2/2]

Module::Module ( const string module)
inline

Definition at line 1220 of file ncbiexpt.hpp.

◆ Native()

int CNcbiError::Native ( void  ) const
inline

Get native numeric value of the error.

Definition at line 159 of file ncbierror.hpp.

References CNcbiError::m_Native.

Referenced by operator<<().

◆ Ncbi_strerror()

const char* Ncbi_strerror ( int  errnum)

Definition at line 793 of file ncbiexpt.cpp.

References _T_STDSTRING, NcbiSys_strerror, NcbiSys_strerror_s, CStaticTls< TValue >::SetValue(), and tmp.

Referenced by operator<<().

◆ NcbiErrnoCode()

int NcbiErrnoCode ( void  )
inline

Definition at line 1527 of file ncbiexpt.hpp.

◆ NcbiErrnoStr()

const char* NcbiErrnoStr ( int  errnum)
inline

Definition at line 1528 of file ncbiexpt.hpp.

References strerror().

◆ operator()() [1/4]

void CExceptionArgsManip_Wrapper::operator() ( CExceptionArgs_Base args) const
inlinevirtual

Implements CExceptionArgsManip.

Definition at line 834 of file ncbiexpt.hpp.

◆ operator()() [2/4]

virtual void Module::operator() ( CExceptionArgs_Base args) const
inlinevirtual

Implements CExceptionArgsManip.

Definition at line 1224 of file ncbiexpt.hpp.

References Module::m_Module, and CExceptionArgs_Base::SetModule().

◆ operator()() [3/4]

virtual void Retriable::operator() ( CExceptionArgs_Base args) const
inlinevirtual

Implements CExceptionArgsManip.

Definition at line 1242 of file ncbiexpt.hpp.

References Retriable::m_Retriable, and CExceptionArgs_Base::SetRetriable().

◆ operator()() [4/4]

virtual void CExceptionArgsManip::operator() ( CExceptionArgs_Base args) const
pure virtual

◆ operator<<()

CNcbiOstream& operator<< ( CNcbiOstream str,
const CNcbiError err 
)

Serialize error code + description provided by OS + extra string data.

Definition at line 325 of file ncbierror.cpp.

References CNcbiError::Category(), CNcbiError::Code(), CNcbiError::eGeneric, CNcbiError::eMsWindows, CNcbiError::Extra(), CLastErrorAdapt::GetErrCodeString(), CNcbiError::Native(), Ncbi_strerror(), and str().

◆ operator=() [1/2]

CException& CException::operator= ( const CException )
private

Private assignment operator to prohibit assignment.

◆ operator=() [2/2]

CNcbiError& CNcbiError::operator= ( const CNcbiError err)
inline

Assignment.

Definition at line 179 of file ncbierror.hpp.

References CNcbiError::m_Category, CNcbiError::m_Code, CNcbiError::m_Extra, and CNcbiError::m_Native.

◆ operator==()

bool CNcbiError::operator== ( ECode  err) const
inline

Comparison.

Definition at line 188 of file ncbierror.hpp.

References CNcbiError::Code().

◆ operator|() [1/4]

template<class TErrCode >
CExceptionArgs<TErrCode>& CExceptionArgs< TErrCode >::operator| ( const CExceptionArgsManip manip)
inline

Definition at line 849 of file ncbiexpt.hpp.

◆ operator|() [2/4]

template<class TErrCode >
CExceptionArgs<TErrCode>& CExceptionArgs< TErrCode >::operator| ( const CExceptionArgsManip_Wrapper manip)
inline

Definition at line 855 of file ncbiexpt.hpp.

◆ operator|() [3/4]

template<class TErrCode >
CExceptionArgs<TErrCode> operator| ( TErrCode  err_code,
const CExceptionArgsManip manip 
)

Exception manipulators. Can be combined with error code using operator|().

Definition at line 1153 of file ncbiexpt.hpp.

◆ operator|() [4/4]

template<class TErrCode >
CExceptionArgs<TErrCode> operator| ( TErrCode  err_code,
const CExceptionArgsManip_Wrapper manip 
)

Definition at line 1163 of file ncbiexpt.hpp.

◆ Report() [1/3]

void CException::Report ( const CDiagCompileInfo info,
const string title,
CExceptionReporter reporter = 0,
TDiagPostFlags  flags = eDPF_Exception 
) const

Report the exception.

Report the exception using "reporter" exception reporter. If "reporter" is not specified (value 0), then use the default reporter as set with CExceptionReporter::SetDefault.

Definition at line 357 of file ncbiexpt.cpp.

References flags, info, CExceptionReporter::Report(), and CExceptionReporter::ReportDefault().

◆ Report() [2/3]

void CExceptionReporterStream::Report ( const char *  file,
int  line,
const string title,
const CException ex,
TDiagPostFlags  flags = eDPF_Exception 
) const
virtual

◆ Report() [3/3]

virtual void CExceptionReporter::Report ( const char *  file,
int  line,
const string title,
const CException ex,
TDiagPostFlags  flags = eDPF_Exception 
) const
pure virtual

Report CException with _this_ reporter.

Implemented in CExceptionReporterStream.

Referenced by CException::Report(), and CExceptionReporter::ReportDefaultEx().

◆ ReportAll()

string CException::ReportAll ( TDiagPostFlags  flags = eDPF_Exception) const

Report all exceptions.

Report as a string all exceptions. Include full backlog.

Definition at line 370 of file ncbiexpt.cpp.

References eDPF_Exception, flags, CException::GetPredecessor(), CException::m_InReporter, NCBI_CURRENT_FUNCTION, CExceptionReporter::ReportDefault(), and CException::sm_BkgrEnabled.

Referenced by CDUpdater::blast(), BOOST_AUTO_TEST_CASE(), CAlgoToolManagerBase::DoTransition(), CBLASTToolManager::DoTransition(), CBlastAligner::GenerateAlignments(), CRemoteBlastAligner::GenerateAlignments(), CProjectStorage::GetObject(), CBLASTDatabases::Load(), CTestApplication::LoadTable(), main(), CMergeTreeThread::Main(), CSelectFeatureDlg::OnButtonLoadFile(), CSelectFeatureDlg::OnButtonSaveFile(), CCrossAlnDemoDlg::OnFileClick(), CAlignMultipleDemoDlg::OnFileClick(), CHitMatrixDemoDlg::OnFileClick(), CFlatFileDemoDlg::OnLoadFileClick(), CEditMacroDlg::OnPrintClick(), CEditMacroDlg::OnPrintParallelClick(), CEditMacroDlg::OnRunClick(), CMacroEngine::ReadAndParseMacros(), CMacroEngineParallel::ReadAndParseMacros(), ReadAnnotFromFile(), ReadEntryFromFile(), ReadFastaSeqsFromFile(), CCgi2RCgiApp::ReadJob(), CDUpdater::reformatBioseq(), CLegend::Render(), CPieGraph::Render(), CScatterGraph::Render(), CAsnvalThreadState::ReportReadFailure(), CUsageReportJob::ReportUsage(), CDataLoadingAppJob::Run(), CProjectServiceTestJob::Run(), CNetBlastSubmittingJob::Run(), CNetBlastMonitoringJob::Run(), CEditAppJob::Run(), CDownloadJob::Run(), CBuildAlnVecJob::Run(), CBuildSparseAlnJob::Run(), CNgAlignApp::Run(), CTableReaderMacro::RunMacro(), CBlastArgs::s_CreateBlastOptions(), s_GetMaskLoc(), CClippedScorer::ScoreAlignments(), sGetMessageAndReport(), CMacroLib::StoreSynonymList(), CDUpdater::submitBlast(), CNgAlignApp::x_AddFilters(), CMacroEngine::x_AppendToLibrary(), CMacroEngineParallel::x_AppendToLibrary(), CRunToolDlg::x_DoTransition(), CDownloadJob::x_Download(), CDownloadJob::x_DownloadAndExtract(), CIdMapperTestApp::x_HandleFeatures(), CNgAlignApp::x_LoadExternalSequences(), CTreeAlignMerger::x_MakeSeqAlign(), CInversionMergeAligner::x_MergeSeqAlignSet(), CMergeAligner::x_MergeSeqAlignSet(), CHugeFileDemoApp::x_ProcessFileTraditionally(), CSplignApp::x_ProcessPair(), CSoapServerApplication::x_ProcessSoapRequest(), CIdMapperTestApp::x_RecurseMapSeqAligns(), CInstancedAligner::x_RunAligner(), CInstancedAligner::x_RunCleanup(), CInstancedAligner::x_RunMMGlobal(), CVariationNormalization_base< T >::x_Shift(), and CGff3Writer::xWriteNucleotideFeature().

◆ ReportDefault()

void CExceptionReporter::ReportDefault ( const CDiagCompileInfo info,
const string title,
const std::exception &  ex,
TDiagPostFlags  flags = eDPF_Exception 
)
static

Report exception using default reporter.

Definition at line 670 of file ncbiexpt.cpp.

References flags, info, and CExceptionReporter::ReportDefaultEx().

Referenced by CException::Report(), and CException::ReportAll().

◆ ReportDefaultEx()

void CExceptionReporter::ReportDefaultEx ( int  err_code,
int  err_subcode,
const CDiagCompileInfo info,
const string title,
const std::exception &  ex,
TDiagPostFlags  flags = eDPF_Exception 
)
static

Report exception using default reporter and particular error code and subcode when writing to diagnostics.

Definition at line 676 of file ncbiexpt.cpp.

References ErrCode, flags, CException::GetSeverity(), info, CExceptionReporter::Report(), CNcbiDiag::SetOmitStackTrace(), CExceptionReporter::sm_DefEnabled, and CExceptionReporter::sm_DefHandler.

Referenced by CExceptionReporter::ReportDefault().

◆ ReportExtra() [1/2]

void CException::ReportExtra ( ostream &  out) const
virtual

Report "non-standard" attributes.

Report "non-standard" attributes (those of derived class) into the "out" stream.

Reimplemented in CRowReaderException, CSerialException, CBadResiduesException, CLoaderException, CErrnoTemplExceptionEx< CCoreException, NCBI_NS_NCBI::NcbiErrnoCode, NCBI_NS_NCBI::NcbiErrnoStr >, and CSDB_Exception.

Definition at line 428 of file ncbiexpt.cpp.

Referenced by CException::ReportThis(), s_GetExceptionText(), and CException::x_ReportToDebugger().

◆ ReportExtra() [2/2]

template<class TBase , TErrorCode PErrCode = NCBI_NS_NCBI::NcbiErrnoCode, TErrorStr PErrStr = NCBI_NS_NCBI::NcbiErrnoStr>
virtual void CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::ReportExtra ( ostream &  out) const
inlineoverridevirtual

Report error number on stream.

Definition at line 1616 of file ncbiexpt.hpp.

◆ ReportStd()

void CException::ReportStd ( ostream &  out,
TDiagPostFlags  flags = eDPF_Exception 
) const

Report "standard" attributes.

Report "standard" attributes (file, line, type, err.code, user message) into the "out" stream (this exception only, no backlog).

Definition at line 409 of file ncbiexpt.cpp.

References flags, SDiagMessage::fNoEndl, SDiagMessage::fNoPrefix, CException::GetClass(), CException::GetErrCodeString(), CException::GetFile(), CException::GetFunction(), CException::GetLine(), CException::GetModule(), CException::GetMsg(), CException::GetSeverity(), CException::GetType(), NULL, out(), text(), and SDiagMessage::Write().

Referenced by CException::ReportThis().

◆ ReportThis()

string CException::ReportThis ( TDiagPostFlags  flags = eDPF_Exception) const

◆ Retriable()

Retriable::Retriable ( ERetriable  retriable)
inline

Definition at line 1239 of file ncbiexpt.hpp.

◆ Set() [1/5]

void CNcbiError::Set ( ECode  code)
static

◆ Set() [2/5]

void CNcbiError::Set ( ECode  code,
const char *  extra 
)
static

Set last error using native error code enum.

Parameters
codeError code
extraAdditional information

Definition at line 184 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ Set() [3/5]

void CNcbiError::Set ( ECode  code,
const CTempString  extra 
)
static

Set last error using native error code enum.

Parameters
codeError code
extraAdditional information

Definition at line 166 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ Set() [4/5]

void CNcbiError::Set ( ECode  code,
const string extra 
)
static

Set last error using native error code enum.

Parameters
codeError code
extraAdditional information

Definition at line 178 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ Set() [5/5]

void CNcbiError::Set ( ECode  code,
string &&  extra 
)
static

Set last error using native error code enum.

Parameters
codeError code
extraAdditional information

Definition at line 172 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ SetClass()

void CException::SetClass ( const string nclass)
inline

Set class name used for reporting.

Definition at line 1020 of file ncbiexpt.hpp.

References CException::m_Class.

◆ SetDefault()

void CExceptionReporter::SetDefault ( const CExceptionReporter handler)
static

Set default reporter.

Definition at line 620 of file ncbiexpt.cpp.

References CExceptionReporter::sm_DefHandler.

◆ SetErrCodeVal()

void CExceptionArgs_Base::SetErrCodeVal ( TErrCodeVal  err_code)
inline

Definition at line 793 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_ErrCode.

Referenced by CExceptionArgs< TErrCode >::CExceptionArgs().

◆ SetErrno() [1/5]

void CNcbiError::SetErrno ( int  errno_code)
static

Set last error using errno code.

Parameters
errno_code"errno" code
extraAdditional information

Definition at line 190 of file ncbierror.cpp.

References CNcbiError::x_Init().

Referenced by CFileWriter::Flush(), MemoryAdvise(), CFileReader::Read(), CFileReaderWriter::Read(), s_CheckAccessPath(), CNcbiError::SetFromErrno(), NStr::StringToNonNegativeInt(), sx_NewStringToNonNegativeInt(), CFileWriter::Write(), and CFileReaderWriter::Write().

◆ SetErrno() [2/5]

void CNcbiError::SetErrno ( int  errno_code,
const char *  extra 
)
static

Set last error using errno code.

Parameters
errno_code"errno" code
extraAdditional information

Definition at line 214 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ SetErrno() [3/5]

void CNcbiError::SetErrno ( int  errno_code,
const CTempString  extra 
)
static

Set last error using errno code.

Parameters
errno_code"errno" code
extraAdditional information

Definition at line 196 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ SetErrno() [4/5]

void CNcbiError::SetErrno ( int  errno_code,
const string extra 
)
static

Set last error using errno code.

Parameters
errno_code"errno" code
extraAdditional information

Definition at line 208 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ SetErrno() [5/5]

void CNcbiError::SetErrno ( int  errno_code,
string &&  extra 
)
static

Set last error using errno code.

Parameters
errno_code"errno" code
extraAdditional information

Definition at line 202 of file ncbierror.cpp.

References CNcbiError::x_Init().

◆ SetFlag()

CException& CException::SetFlag ( EFlags  flag)
inline

Set flag (add to other flags)

Definition at line 1053 of file ncbiexpt.hpp.

References CException::m_Flags.

◆ SetFlags()

void CExceptionArgs_Base::SetFlags ( TFlags  flags)
inline

Definition at line 796 of file ncbiexpt.hpp.

References flags, and CExceptionArgs_Base::m_Flags.

Referenced by Console().

◆ SetFromErrno() [1/5]

void CNcbiError::SetFromErrno ( const char *  extra)
static

Set last error using current "errno" code.

Parameters
extraAdditional information

Definition at line 244 of file ncbierror.cpp.

References CNcbiError::SetErrno().

◆ SetFromErrno() [2/5]

void CNcbiError::SetFromErrno ( const CTempString  extra)
static

Set last error using current "errno" code.

Parameters
extraAdditional information

Definition at line 226 of file ncbierror.cpp.

References CNcbiError::SetErrno().

◆ SetFromErrno() [3/5]

void CNcbiError::SetFromErrno ( const string extra)
static

Set last error using current "errno" code.

Parameters
extraAdditional information

Definition at line 238 of file ncbierror.cpp.

References CNcbiError::SetErrno().

◆ SetFromErrno() [4/5]

void CNcbiError::SetFromErrno ( string &&  extra)
static

Set last error using current "errno" code.

Parameters
extraAdditional information

Definition at line 232 of file ncbierror.cpp.

References CNcbiError::SetErrno().

◆ SetFromErrno() [5/5]

void CNcbiError::SetFromErrno ( void  )
static

◆ SetFromWindowsError() [1/5]

void CNcbiError::SetFromWindowsError ( const char *  extra)
static

Set last error on MS Windows using GetLastError()

Parameters
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 314 of file ncbierror.cpp.

References CNcbiError::SetWindowsError().

◆ SetFromWindowsError() [2/5]

void CNcbiError::SetFromWindowsError ( const CTempString  extra)
static

Set last error on MS Windows using GetLastError()

Parameters
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 296 of file ncbierror.cpp.

References CNcbiError::SetWindowsError().

◆ SetFromWindowsError() [3/5]

void CNcbiError::SetFromWindowsError ( const string extra)
static

Set last error on MS Windows using GetLastError()

Parameters
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 308 of file ncbierror.cpp.

References CNcbiError::SetWindowsError().

◆ SetFromWindowsError() [4/5]

void CNcbiError::SetFromWindowsError ( string &&  extra)
static

Set last error on MS Windows using GetLastError()

Parameters
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 302 of file ncbierror.cpp.

References CNcbiError::SetWindowsError().

◆ SetFromWindowsError() [5/5]

void CNcbiError::SetFromWindowsError ( void  )
static

◆ SetFunction()

void CException::SetFunction ( const string function)
inline

Set function name used for reporting.

Definition at line 1026 of file ncbiexpt.hpp.

References CException::m_Function.

◆ SetModule() [1/2]

void CExceptionArgs_Base::SetModule ( const string module)
inline

Definition at line 802 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Module.

Referenced by Module::operator()().

◆ SetModule() [2/2]

void CException::SetModule ( const string module)
inline

Set module name used for reporting.

Definition at line 1014 of file ncbiexpt.hpp.

References CException::m_Module.

◆ SetRetriable() [1/2]

void CExceptionArgs_Base::SetRetriable ( ERetriable  retriable)
inline

Definition at line 806 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Retriable.

Referenced by Retriable::operator()().

◆ SetRetriable() [2/2]

void CException::SetRetriable ( ERetriable  retriable)
inline

Set the info about ability to retry an action caused the exception.

Definition at line 1062 of file ncbiexpt.hpp.

References CException::m_Retriable.

Referenced by impl::CDBExceptionStorage::Handle().

◆ SetSeverity() [1/2]

CException & CException::SetSeverity ( EDiagSev  severity)

◆ SetSeverity() [2/2]

void CExceptionArgs_Base::SetSeverity ( TSeverity  severity)
inline

Definition at line 799 of file ncbiexpt.hpp.

References CExceptionArgs_Base::m_Severity.

Referenced by Critical(), Error(), Fatal(), Info(), Trace(), and Warning().

◆ SetStackTraceLevel()

void CException::SetStackTraceLevel ( EDiagSev  level)
static

Set severity level for saving and printing stack trace.

Definition at line 129 of file ncbiexpt.cpp.

Referenced by CHgvsToSeqfeatConverter::Init().

◆ SetThrowTraceAbort()

void SetThrowTraceAbort ( bool  abort_on_throw_trace)

Specify whether to call "abort()" inside the DoThrowTraceAbort().

By default, this feature is not activated unless

  • environment variable $ABORT_ON_THROW is set (to any value), or
  • registry value of ABORT_ON_THROW, section DEBUG is set (to any value)

Definition at line 66 of file ncbiexpt.cpp.

References s_DoThrowTraceAbort(), and s_DTTA_Initialized().

Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::x_HonorStandardSettings().

◆ SetWindowsError() [1/5]

void CNcbiError::SetWindowsError ( int  native_err_code)
static

Set last error using Windows-specific error code.

Parameters
native_err_codeWindows-specific error code
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 260 of file ncbierror.cpp.

References CNcbiError::x_Init(), and CNcbiError::x_SetWindowsCodeCategory().

Referenced by CDir::GetEntriesPtr(), CWinSecurity::GetObjectOwner(), CProcess::Kill(), s_GetCurrentThreadToken(), s_GetFileSecurityDescriptor(), CNcbiError::SetFromWindowsError(), CWinSecurity::SetTokenPrivilege(), x_GetAccountSidByName(), and CProcess::x_GetHandle().

◆ SetWindowsError() [2/5]

void CNcbiError::SetWindowsError ( int  native_err_code,
const char *  extra 
)
static

Set last error using Windows-specific error code.

Parameters
native_err_codeWindows-specific error code
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 284 of file ncbierror.cpp.

References CNcbiError::x_Init(), and CNcbiError::x_SetWindowsCodeCategory().

◆ SetWindowsError() [3/5]

void CNcbiError::SetWindowsError ( int  native_err_code,
const CTempString  extra 
)
static

Set last error using Windows-specific error code.

Parameters
native_err_codeWindows-specific error code
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 266 of file ncbierror.cpp.

References CNcbiError::x_Init(), and CNcbiError::x_SetWindowsCodeCategory().

◆ SetWindowsError() [4/5]

void CNcbiError::SetWindowsError ( int  native_err_code,
const string extra 
)
static

Set last error using Windows-specific error code.

Parameters
native_err_codeWindows-specific error code
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 278 of file ncbierror.cpp.

References CNcbiError::x_Init(), and CNcbiError::x_SetWindowsCodeCategory().

◆ SetWindowsError() [5/5]

void CNcbiError::SetWindowsError ( int  native_err_code,
string &&  extra 
)
static

Set last error using Windows-specific error code.

Parameters
native_err_codeWindows-specific error code
extraAdditional information
Note
Not all Windows errors can be translated into ECode enum. In this case, Code() will return 'eUnknown'

Definition at line 272 of file ncbierror.cpp.

References CNcbiError::x_Init(), and CNcbiError::x_SetWindowsCodeCategory().

◆ Throw() [1/5]

void CException::Throw ( void  ) const
virtual

Polymorphically (re)throw an exception whose exact type is uncertain.

NB: for best results, *EVERY* concrete derived class in the hierarchy must implement its *OWN* version of Throw(). (Using NCBI_EXCEPTION_DEFAULT or a related macro will take care of this for you.)

Simply invoking the throw keyword with no arguments is a better option when available (within a catch block), but there are circumstances in which it is not.

Reimplemented in CErrnoTemplException< CCoreException >, CInvalidParamException, and CCoreException.

Definition at line 333 of file ncbiexpt.cpp.

References CException::x_ThrowSanityCheck().

◆ Throw() [2/5]

virtual void CCoreException::Throw ( void  ) const
inlineoverridevirtual

Polymorphically (re)throw an exception whose exact type is uncertain.

NB: for best results, *EVERY* concrete derived class in the hierarchy must implement its *OWN* version of Throw(). (Using NCBI_EXCEPTION_DEFAULT or a related macro will take care of this for you.)

Simply invoking the throw keyword with no arguments is a better option when available (within a catch block), but there are circumstances in which it is not.

Reimplemented from CException.

Reimplemented in CErrnoTemplException< CCoreException >.

Definition at line 1493 of file ncbiexpt.hpp.

◆ Throw() [3/5]

virtual void CInvalidParamException::Throw ( void  ) const
inlineoverridevirtual

Polymorphically (re)throw an exception whose exact type is uncertain.

NB: for best results, *EVERY* concrete derived class in the hierarchy must implement its *OWN* version of Throw(). (Using NCBI_EXCEPTION_DEFAULT or a related macro will take care of this for you.)

Simply invoking the throw keyword with no arguments is a better option when available (within a catch block), but there are circumstances in which it is not.

Reimplemented from CException.

Definition at line 1516 of file ncbiexpt.hpp.

◆ Throw() [4/5]

template<class TBase >
virtual void CErrnoTemplException< TBase >::Throw ( void  ) const
inlineoverridevirtual

Definition at line 1693 of file ncbiexpt.hpp.

◆ Throw() [5/5]

template<class TBase >
virtual void CErrnoTemplException_Win< TBase >::Throw ( void  ) const
inlineoverridevirtual

Definition at line 1723 of file ncbiexpt.hpp.

◆ Trace()

void Trace ( CExceptionArgs_Base args)
inline

◆ UnsetFlag()

CException& CException::UnsetFlag ( EFlags  flag)
inline

Unset flag (other flags are left as is)

Definition at line 1056 of file ncbiexpt.hpp.

References CException::m_Flags.

◆ UppermostCast()

template<class TTo , class TFrom >
const TTo* UppermostCast ( const TFrom &  from)

Return valid pointer to uppermost derived class only if "from" is _really_ the object of the desired type.

Do not cast to intermediate types (return NULL if such cast is attempted).

Definition at line 1260 of file ncbiexpt.hpp.

◆ Warning()

void Warning ( CExceptionArgs_Base args)
inline

Definition at line 1191 of file ncbiexpt.hpp.

References eDiag_Warning, and CExceptionArgs_Base::SetSeverity().

Referenced by CThreadPool_Impl::Abort(), CSeqsRange::Add(), CCompoundRWRegistry::Add(), CTextJoiner< num_prealloc, TIn, TOut >::Add(), CGapAnalysis::AddBioseqGaps(), CQueueClientInfoList::AddClientInfo(), CFeatureTableReader_Imp::AddFeatQual(), SAccGuide::AddRule(), CGRPCClientContext::AddStandardNCBIMetadata(), SPSG_Throttling::SStats::Adjust(), AlignmentSet::AlignmentSet(), CNcbiApplicationAPI::AppMain(), CSerialObject::Assign(), CNCBlobKey::Assign(), CAdminCmdProcessor::Authenticate(), CCgiResponse::BeginPart(), BlastFormatter_PreFetchSequenceData(), CGlBuffer20< T >::BufferData(), CGlBuffer11< T >::BufferData(), BuildAlignDataSource(), WSDLParser::BuildDataTree(), CRelocateCallback::Callback(), CPSGDataLoader_Impl::CallWithRetry(), CCSRADataLoader_Impl::CallWithRetry(), CSNPDataLoader_Impl::CallWithRetry(), CVDBGraphDataLoader_Impl::CallWithRetry(), CWGSDataLoader_Impl::CallWithRetry(), CQueue::CancelSelectedJobs(), CQueue::CancelWaitGet(), CQueue::CancelWaitRead(), CBlastFormat::CBlastFormat(), CClusterDBSource::CClusterDBSource(), CQueue::ChangeAffinity(), CRmtFileStatus::Check(), CheckBinaryTruncation(), CNCActiveHandler::CheckCommandTimeout(), CheckForFreqRatioFile(), CCgiApplication::CheckMemoryLimit(), CheckMTByQueries_QuerySize(), CDataTypeModule::CheckNames(), CCassBlobWaiter::CheckReady(), CCassQueryList::CheckSlot(), CheckStringTruncation(), CIgAnnotationInfo::CIgAnnotationInfo(), CBDB_Cache::Close(), CQueueDataBase::Close(), CArg_Ios::CloseFile(), CBam2Seq_graph::CollectCoverage(), CBam2Seq_graph::CollectRawAccessCoverage(), CCodeGenerator::CollectTypes(), NWinHook::COnExitProcess::COnExitProcess(), CICacheCF< CNetICacheClient >::ConfigureICache(), CICacheCF< CNetICacheClient >::ConfigureTimeStamp(), CBlastDBAliasApp::ConvertGiFile(), pub_report::ConvertPMCtoPMID(), CEutilsClient::Count(), CSeqMaskerIstatFactory::create(), CMSModSpecSet::CreateArrays(), CVDBBlastUtil::CreateBioseqFromOid(), CSeqMaskerOstatOpt::createCacheBitArray(), CGradientColorPanel::CreateControls(), CSQLITE3_BlobCacheCF::CreateInstance(), CBlobStorageFactory::CreateInstance(), CNCPeerControl::CreateNewSocket(), CAlignCleanup::CreatePairwiseFromMultiple(), CProtSeqlocHelper::CreateSeqloc(), CDeltaHelper::CreateSSR(), CSafeStaticLifeSpan::CSafeStaticLifeSpan(), CSeqMaskerIstatOBinary::CSeqMaskerIstatOBinary(), CSmallDNS::CSmallDNS(), CTLibContext::CTLIB_srverr_handler(), CVDBGraphDb_Impl::CVDBGraphDb_Impl(), CWriteDB_ConsolidateAliasFiles(), SPSG_Throttling::Discovered(), SAsnProjectSingleT::DoCreate(), pub_report::DoHydraSearch(), CEUtilsUpdaterBase::DoPubSearch(), CAlignGlyph::DrawPWAlignElem(), CLDS2_ObjectParser::EndBlob(), CTreeFiller::Execute(), CProjectStorage::Exists(), CObjectIStreamAsnBinary::ExpectStringTag(), CMapperMTArgs::ExtractAlgorithmOptions(), CFormattingArgs::ExtractAlgorithmOptions(), CQueue::FailJob(), CConn_Streambuf::Fetch(), pub_report::CUnpublishedReport::FetchPub(), CRgbaGradColorTable::FillGradient(), CAppRegistry::Find(), CSeq_id_not_set_Tree::FindMatch(), CSeq_id_not_set_Tree::FindReverseMatch(), CTestDispatcher::Fire(), CTestDispatcher::FireFirst(), CCurrentProcess::Fork(), CBlastAligner::GenerateAlignments(), CRemoteBlastAligner::GenerateAlignments(), CClientPseudoTypeStrings::GenerateClassCode(), CBlast4Field::Get(), CSGAlignmentDS::GetAlignType(), CGencollSvc::GetAssmsInfo(), ChemicalGraph::GetAtomInfo(), Residue::GetAtomInfo(), Molecule::GetAtomInfo(), CNCPeerControl::GetBGConn(), SPsgBioseqInfo::GetBioseqStateFlags(), CSplitQueryBlk::GetChunkOverlapSize(), CGenomicCollectionsService::GetEquivalentAssemblies(), CNetScheduleGetJobImpl< CMainLoopThread::CImpl >::GetJobImmediately(), ICitationBase::GetLabel(), CGuiObjectInfoSeq_align::GetLinks(), CSmallDNS::GetLocalHost(), CDB_Object::GetLogString(), CClusterDBSource::GetNext(), CProjectItem::GetObject(), CProjectStorage::GetObject(), StructureBase::GetParentOfType(), CPMCIDConverterServer::GetPmids(), CRefArgs::GetQueryString(), CSegmentMapTrackFactory::GetSettings(), CSequenceTrackFactory::GetSettings(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CVcfTrackFactory::GetSettings(), SWorkerNodeJobContextImpl::GetShutdownLevel(),