Exceptions Hierarchy
[CORELIB]

Collaboration diagram for Exceptions Hierarchy:


Classes

class  CException
 CException --. More...
class  CExceptionReporter
 CExceptionReporter --. More...
class  CExceptionReporterStream
 CExceptionReporterStream --. More...
class  CCoreException
 CCoreException --. More...
class  CErrnoAdapt
class  CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >
 CErrnoTemplExceptionEx --. More...
class  CErrnoTemplException< TBase >
 CErrnoTemplException --. More...

Defines

#define THROWS_NONE
 Define THROWS macros for C++ exception specification.
#define THROWS(x)
#define ABORT_ON_THROW   "ABORT_ON_THROW"
 ABORT_ON_THROW controls if program should be aborted.
#define RETHROW_TRACE
 Rethrow trace.
#define THROW0_TRACE(exception_object)
 Throw trace.
#define THROW0p_TRACE(exception_object)
 Throw trace.
#define THROW0np_TRACE(exception_object)
 Throw trace.
#define THROW1_TRACE(exception_class, exception_arg)
 Throw trace.
#define THROW1p_TRACE(exception_class, exception_arg)
 Throw trace.
#define THROW1np_TRACE(exception_class, exception_arg)
 Throw trace.
#define THROW_TRACE(exception_class, exception_args)
 Throw trace.
#define THROWp_TRACE(exception_class, exception_args)
 Throw trace.
#define THROWnp_TRACE(exception_class, exception_args)
 Throw trace.
#define STD_CATCH(message)
 Standard handling of "exception"-derived exceptions.
#define STD_CATCH_ALL(message)
 Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "unknown exception" for all other exceptions.
#define NCBI_CATCH(message)
 Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
#define NCBI_CATCH_ALL(message)
 This macro is deprecated - use *_X or *_XX variant instead of it.
#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.
#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.
#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.
#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.
#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.
#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.
#define NCBI_CATCH_ALL_XX(err_name, err_subcode, message)
#define FORMAT(message)   CNcbiOstrstreamToString(static_cast<CNcbiOstrstream&>(CNcbiOstrstream().flush() << message))
 Format message using iostreams library.
#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.
#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.
#define NCBI_EXCEPTION_THROW(exception_var)   throw (exception_var)
 Throw an existing exception object.
#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.
#define NCBI_THROW(exception_class, err_code, message)   NCBI_EXCEPTION_THROW(NCBI_EXCEPTION(exception_class, err_code, message))
 Generic macro to throw an exception, given the exception class, error code and message string.
#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.
#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.
#define NCBI_RETHROW(prev_exception, exception_class, err_code, message)   throw NCBI_EXCEPTION_EX(prev_exception, exception_class, err_code, message)
 Generic macro to re-throw an exception.
#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.
#define NCBI_RETHROW_SAME(prev_exception, message)
 Generic macro to re-throw the same exception.
#define NCBI_REPORT_EXCEPTION(title, ex)   CExceptionReporter::ReportDefault(DIAG_COMPILE_INFO,title,ex,eDPF_Default)
 Generate a report on the exception.
#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.
#define NCBI_REPORT_EXCEPTION_XX(err_name, err_subcode, title, ex)
 Generate a report on the exception with default error code and given subcode.
#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.
#define NCBI_EXCEPTION_DEFAULT(exception_class, base_class)
 To help declare new exception class.
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL(exception_class, base_class)
 Helper macro added to support templatized exceptions.
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_TEMPL_ERRNO(exception_class, base_class)
 Helper macro added to support errno based templatized exceptions.
#define EXCEPTION_VIRTUAL_BASE   virtual
 Exception bug workaround for GCC version less than 3.00.
#define NCBI_ERRNO_CODE_WRAPPER   NCBI_NS_NCBI::CErrnoAdapt::GetErrCode
#define NCBI_ERRNO_STR_WRAPPER   NCBI_NS_NCBI::CErrnoAdapt::GetErrCodeString
#define NCBI_EXCEPTION2_VAR(name, exception_class, err_code, message, extra)
 Create an instance of the exception with one additional parameter.
#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.
#define NCBI_THROW2(exception_class, err_code, message, extra)   throw NCBI_EXCEPTION2(exception_class, err_code, message, extra)
 Throw exception with extra parameter.
#define NCBI_RETHROW2(prev_exception, exception_class, err_code, message, extra)
 Re-throw exception with extra parameter.
#define NCBI_EXCEPTION_DEFAULT2(exception_class, base_class, extra_type)
 Define exception default with one additional parameter.

Typedefs

typedef int(* TErrorCode )(void)
 Define function type for "error code" function.
typedef const char *(* TErrorStr )(int errnum)
 Define function type for "error str" function.

Functions

void SetThrowTraceAbort (bool abort_on_throw_trace)
 Specify whether to call "abort()" inside the DoThrowTraceAbort().
void DoThrowTraceAbort (void)
 "abort()" the program if set by SetThrowTraceAbort() or $ABORT_ON_THROW.
void DoDbgPrint (const CDiagCompileInfo &info, const char *message)
 Print the specified debug message.
void DoDbgPrint (const CDiagCompileInfo &info, const string &message)
 Print the specified debug message.
void DoDbgPrint (const CDiagCompileInfo &info, const char *msg1, const char *msg2)
 Print the specified debug messages.
template<typename T>
const T & DbgPrint (const CDiagCompileInfo &info, const T &e, const char *e_str)
 Templated function for printing debug message.
const char * DbgPrint (const CDiagCompileInfo &info, const char *e, const char *)
 Print debug message for "const char*" object.
char * DbgPrint (const CDiagCompileInfo &info, char *e, const char *)
 Print debug message for "char*" object.
const string & DbgPrint (const CDiagCompileInfo &info, const string &e, const char *)
 Print debug message for "std::string" object.
template<typename T>
const T & DbgPrintP (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.
template<typename T>
const T & DbgPrintNP (const CDiagCompileInfo &info, const T &e, const char *e_str)
 Create diagnostic stream for printing specified message.
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.


Define Documentation

#define ABORT_ON_THROW   "ABORT_ON_THROW"
 

ABORT_ON_THROW controls if program should be aborted.

Definition at line 78 of file ncbiexpt.hpp.

Referenced by DoThrowTraceAbort().

#define EXCEPTION_VIRTUAL_BASE   virtual
 

Exception bug workaround for GCC version less than 3.00.

GCC compiler v.2.95 has a bug: one should not use virtual base class in exception declarations - a program crashes when deleting such an exception (this is fixed in newer versions of the compiler).

Definition at line 927 of file ncbiexpt.hpp.

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

Format message using iostreams library.

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

Definition at line 513 of file ncbiexpt.hpp.

Referenced by CNcbiTestTreeElement::x_AddToMustLeft(), and CNcbiTestTreeElement::x_AddToMustRight().

#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 419 of file ncbiexpt.hpp.

#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 426 of file ncbiexpt.hpp.

Referenced by CBlobStorage_NetCache::~CBlobStorage_NetCache().

#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 458 of file ncbiexpt.hpp.

Referenced by CONNECT_Init(), s_InitInternal(), s_LOCK_Cleanup(), s_LOG_Handler(), s_REG_Cleanup(), s_REG_Get(), s_REG_Set(), CThread::Wrapper(), CDBLibContext::x_Close(), CCgiRequest::x_ProcessInputStream(), CAutoTrans::~CAutoTrans(), CBlobIStream::~CBlobIStream(), CBlobOStream::~CBlobOStream(), CBlobStreamHelper::~CBlobStreamHelper(), CBulkInsert::~CBulkInsert(), CByteStreamBuf::~CByteStreamBuf(), CCallableStatement::~CCallableStatement(), python::CCallableStmtHelper::~CCallableStmtHelper(), python::CConnection::~CConnection(), CConnection::~CConnection(), python::CCursor::~CCursor(), CCursor::~CCursor(), CDB_BCPInCmd::~CDB_BCPInCmd(), CDB_Connection::~CDB_Connection(), CDB_CursorCmd::~CDB_CursorCmd(), CDB_LangCmd::~CDB_LangCmd(), CDB_Result::~CDB_Result(), CDB_ResultProcessor::~CDB_ResultProcessor(), CDB_RPCCmd::~CDB_RPCCmd(), CDB_SendDataCmd::~CDB_SendDataCmd(), CDB_Stream::~CDB_Stream(), CDB_UserHandler_Diag::~CDB_UserHandler_Diag(), CDB_UserHandler_Stream::~CDB_UserHandler_Stream(), impl::CDBExceptionStorage::~CDBExceptionStorage(), CDBL_BCPInCmd::~CDBL_BCPInCmd(), CDBL_BlobResult::~CDBL_BlobResult(), CDBL_ComputeResult::~CDBL_ComputeResult(), CDBL_Connection::~CDBL_Connection(), CDBL_CursorCmd::~CDBL_CursorCmd(), CDBL_CursorResult::~CDBL_CursorResult(), CDBL_LangCmd::~CDBL_LangCmd(), CDBL_ParamResult::~CDBL_ParamResult(), CDBL_RowResult::~CDBL_RowResult(), CDBL_RPCCmd::~CDBL_RPCCmd(), CDBL_SendDataCmd::~CDBL_SendDataCmd(), CDBLibContext::~CDBLibContext(), CDblibContextRegistry::~CDblibContextRegistry(), CMemStore::~CMemStore(), CMySQL_Connection::~CMySQL_Connection(), CMySQL_LangCmd::~CMySQL_LangCmd(), CNetCacheReader::~CNetCacheReader(), CNetCacheWriter::~CNetCacheWriter(), CODBC_BCPInCmd::~CODBC_BCPInCmd(), CODBC_Connection::~CODBC_Connection(), CODBC_CursorCmd::~CODBC_CursorCmd(), CODBC_CursorCmdExpl::~CODBC_CursorCmdExpl(), CODBC_CursorResult::~CODBC_CursorResult(), CODBC_LangCmd::~CODBC_LangCmd(), CODBC_RowResult::~CODBC_RowResult(), CODBC_RPCCmd::~CODBC_RPCCmd(), CODBC_SendDataCmd::~CODBC_SendDataCmd(), CODBCContext::~CODBCContext(), CODBCContextRegistry::~CODBCContextRegistry(), ctlib::Command::~Command(), ctlib::Connection::~Connection(), CRemoteAppRequestMB_Impl::~CRemoteAppRequestMB_Impl(), CRemoteAppRequestSB_Impl::~CRemoteAppRequestSB_Impl(), CRemoteAppResultMB_Impl::~CRemoteAppResultMB_Impl(), CRemoteAppResultSB_Impl::~CRemoteAppResultSB_Impl(), impl::CResult::~CResult(), CResultSet::~CResultSet(), CResultSetMetaData::~CResultSetMetaData(), CStatement::~CStatement(), CStatementBase::~CStatementBase(), python::CStmtHelper::~CStmtHelper(), CStringOrBlobStorageReader::~CStringOrBlobStorageReader(), CStringOrBlobStorageWriter::~CStringOrBlobStorageWriter(), CTL_BCPInCmd::~CTL_BCPInCmd(), CTL_Cmd::~CTL_Cmd(), CTL_Connection::~CTL_Connection(), CTL_CursorCmd::~CTL_CursorCmd(), CTL_CursorCmdExpl::~CTL_CursorCmdExpl(), CTL_CursorResult::~CTL_CursorResult(), CTL_CursorResultExpl::~CTL_CursorResultExpl(), CTL_LangCmd::~CTL_LangCmd(), CTL_LRCmd::~CTL_LRCmd(), CTL_RowResult::~CTL_RowResult(), CTL_RPCCmd::~CTL_RPCCmd(), CTL_SendDataCmd::~CTL_SendDataCmd(), CTLibContext::~CTLibContext(), CTLibContextRegistry::~CTLibContextRegistry(), python::CTransaction::~CTransaction(), CVariant::~CVariant(), and CxBlobWriter::~CxBlobWriter().

#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 500 of file ncbiexpt.hpp.

#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 454 of file ncbiexpt.hpp.

Referenced by CThread::Wrapper().

#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 493 of file ncbiexpt.hpp.

#define NCBI_ERRNO_CODE_WRAPPER   NCBI_NS_NCBI::CErrnoAdapt::GetErrCode
 

Definition at line 1063 of file ncbiexpt.hpp.

#define NCBI_ERRNO_STR_WRAPPER   NCBI_NS_NCBI::CErrnoAdapt::GetErrCodeString
 

Definition at line 1064 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION exception_class,
err_code,
message   ) 
 

Value:

NCBI_EXCEPTION_VAR(NCBI_EXCEPTION_EMPTY_NAME,                    \
    exception_class, err_code, message)
Generic macro to make an exception, given the exception class, error code and message string.

Definition at line 537 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION2 exception_class,
err_code,
message,
extra   ) 
 

Value:

NCBI_EXCEPTION2_VAR(NCBI_EXCEPTION_EMPTY_NAME,                   \
    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.

Definition at line 1263 of file ncbiexpt.hpp.

#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) )
Create an instance of the exception with one additional parameter.

Definition at line 1257 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION_DEFAULT exception_class,
base_class   ) 
 

Value:

public:                                                             \
    exception_class(const CDiagCompileInfo& info,                   \
        const CException* prev_exception,                           \
                    EErrCode err_code,const string& message,        \
                    EDiagSev severity = eDiag_Error)                \
        : base_class(info, prev_exception,                          \
            (base_class::EErrCode) CException::eInvalid, (message)) \
    NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION(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.

Definition at line 873 of file ncbiexpt.hpp.

Referenced by BEGIN_SCOPE().

#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, \
            (base_class::EErrCode) CException::eInvalid, \
            (message), extra_param, severity) \
    NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION(exception_class, base_class)
Define exception default with one additional parameter.

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

Definition at line 1287 of file ncbiexpt.hpp.

#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)
Helper macro for default exception implementation.

See also:
NCBI_EXCEPTION_DEFAULT

Definition at line 858 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION_COMMON exception_class,
base_class   ) 
 

Value:

exception_class(const exception_class& other) \
       : base_class(other) \
    { \
        x_Assign(other); \
    } \
public: \
    virtual ~exception_class(void) throw() {} \
    virtual const char* GetType(void) const {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 \
    { \
        return new exception_class(*this); \
    } \

Definition at line 830 of file ncbiexpt.hpp.

#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 888 of file ncbiexpt.hpp.

#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 \
    { \
        switch (GetErrCode()) { \
        case CParent::eErrno: return "eErrno"; \
        default:              return CException::GetErrCodeString(); \
        } \
    }
Helper macro added to support errno based templatized exceptions.

Definition at line 897 of file ncbiexpt.hpp.

Referenced by CErrnoTemplException< CCgiException >::x_Clone().

#define NCBI_EXCEPTION_DEFAULT_THROW exception_class   ) 
 

Value:

virtual void Throw(void) const \
    { \
        this->x_ThrowSanityCheck(typeid(exception_class), #exception_class); \
        throw *this; \
    }

Definition at line 823 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION_EMPTY_NAME
 

Definition at line 532 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION_EX prev_exception,
exception_class,
err_code,
message   ) 
 

Value:

NCBI_EXCEPTION_VAR_EX(NCBI_EXCEPTION_EMPTY_NAME, &(prev_exception),      \
    exception_class, err_code, message)
Generic macro to make an exception, given the exception class, previous exception , error code and message string.

Definition at line 552 of file ncbiexpt.hpp.

#define NCBI_EXCEPTION_THROW exception_var   )     throw (exception_var)
 

Throw an existing exception object.

Definition at line 529 of file ncbiexpt.hpp.

Referenced by CCgiApplication::VerifyCgiContext().

#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 525 of file ncbiexpt.hpp.

Referenced by CCgiApplication::VerifyCgiContext().

#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 520 of file ncbiexpt.hpp.

#define NCBI_REPORT_EXCEPTION title,
ex   )     CExceptionReporter::ReportDefault(DIAG_COMPILE_INFO,title,ex,eDPF_Default)
 

Generate a report on the exception.

Definition at line 570 of file ncbiexpt.hpp.

#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 575 of file ncbiexpt.hpp.

Referenced by CNcbiApplication::x_TryMain(), CDll::~CDll(), and CFileLock::~CFileLock().

#define NCBI_REPORT_EXCEPTION_XX err_name,
err_subcode,
title,
ex   ) 
 

Value:

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

Definition at line 580 of file ncbiexpt.hpp.

#define NCBI_RETHROW prev_exception,
exception_class,
err_code,
message   )     throw NCBI_EXCEPTION_EX(prev_exception, exception_class, err_code, message)
 

Generic macro to re-throw an exception.

Definition at line 557 of file ncbiexpt.hpp.

Referenced by CArg_Boolean::CArg_Boolean(), CArg_Double::CArg_Double(), CArg_Int8::CArg_Int8(), CBlastRPSInfo::CBlastRPSInfo(), CRpsMmappedFile::CRpsMmappedFile(), CAppJobDispatcher::DeleteJob(), CCgiRequest::GetSession(), CReader::OpenInitialConnection(), CId2Reader::x_InitConnection(), CId1Reader::x_ReceiveReply(), CId1Reader::x_SendRequest(), and CAppJobDispatcher::x_StartJob().

#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 1278 of file ncbiexpt.hpp.

#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 561 of file ncbiexpt.hpp.

#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 565 of file ncbiexpt.hpp.

Referenced by CEnumeratedTypeInfo::CopyEnum(), CCodeGenerator::ExternalResolve(), CMapTypeStrings::GetDestructionCode(), CListTypeStrings::GetDestructionCode(), CSetTypeStrings::GetDestructionCode(), CObjectIStream::HandleEOF(), DTDParser::Module(), ASNParser::ModuleBody(), CEnumeratedTypeInfo::ReadEnum(), CCodeGenerator::ResolveInAnyModule(), CReferenceDataType::ResolveOrThrow(), CSafeStaticRef< T >::Set(), CSafeStaticPtr< T >::Set(), CEnumeratedTypeInfo::SkipEnum(), CEnumeratedTypeInfo::WriteEnum(), CSafeStaticRef< T >::x_Init(), CSafeStaticPtr< T >::x_Init(), and CNcbiApplication::x_TryMain().

#define NCBI_THROW exception_class,
err_code,
message   )     NCBI_EXCEPTION_THROW(NCBI_EXCEPTION(exception_class, err_code, message))
 

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

Definition at line 543 of file ncbiexpt.hpp.

Referenced by CObjectManager::AcquireDataLoader(), CServer_Listener::Activate(), CMaskInfoRegistry::Add(), CAlnMixMatches::Add(), CUnsupportedEditSaver::Add(), CSeqMaskerUsetSimple::add_info(), CSeqMaskerUsetArray::add_info(), CPrefetchManager_Impl::AddAction(), CPrefetchManager::AddAction(), CPluginArgSet::AddArgument(), CScope_Impl::AddBioseq(), CObjectList::AddColumn(), CWriteDB_Volume::AddColumnMetaData(), CWriteDB_Impl::AddColumnMetaData(), CUIDataSourceService::AddDataSource(), CTime::AddDay(), CPluginArgSet::AddDefaultArgument(), CUnsupportedEditSaver::AddDesc(), CUnsupportedEditSaver::AddDescr(), CArgDescriptions::AddExtra(), CGroupMapWidget::AddGroup(), CUnsupportedEditSaver::AddId(), CWriteDB_IsamIndex::AddIds(), CHTMLPopupMenu::AddItem(), CFlatFileFactoryBuilder::AddItem(), CDelta_ext::AddLiteral(), CTime::AddMinute(), CTime::AddMonth(), CTime::AddNanoSecond(), CArgDescriptions::AddNegatedFlagAlias(), CSeqSearch::AddNucleotidePattern(), CPluginArgSet::AddOptionalArgument(), CProjectService::AddProjectView(), CNcbiResourceInfoFile::AddResourceInfo(), CTime::AddSecond(), CScope_Impl::AddSeq_annot(), CScope_Impl::AddSeq_entry(), CScope_Impl::AddSharedSeq_annot(), CScope_Impl::AddSharedSeq_entry(), AddSpanningSentinelFeat(), CThreadPool_Impl::AddTask(), CAppTaskService::AddTask(), CViewManagerService::AddToWorkbench(), CDataSource::AddTSE(), CEnumeratedTypeValues::AddValue(), CSeqDBAtlas::Alloc(), COMSSASearch::AppendSearch(), CSplignFormatter::AsAlignmentText(), CPluginValue::AsBoolean(), CPluginArg::AsBoolean(), CArg_String::AsBoolean(), CSpliced_seg::AsDiscSeg(), CPluginValue::AsDouble(), CPluginArg::AsDouble(), CArg_String::AsDouble(), CPluginValue::AsInputFile(), CPluginArg::AsInputFile(), CTmpFile::AsInputFile(), CArg_String::AsInputFile(), CArg_String::AsInt8(), CPluginValue::AsInteger(), CPluginArg::AsInteger(), CArg_String::AsInteger(), CPluginArg::AsList(), CPluginValue::AsObject(), CPluginArg::AsObject(), CPluginValue::AsOutputFile(), CPluginArg::AsOutputFile(), CTmpFile::AsOutputFile(), CArg_String::AsOutputFile(), CPluginValue::AsProject(), CPluginArg::AsProject(), CPluginValue::AsSecretString(), CPluginArg::AsSecretString(), CSplignFormatter::AsSeqAlignSet(), CSerialObject::Assign(), CPluginValue::AsString(), CPluginArg::AsString(), CTime::AsString(), CNWFormatter::AsText(), CUnsupportedEditSaver::Attach(), CDataSource::AttachAnnot(), CDataSource::AttachEntry(), BackAlignNog(), Blast_GetSeqLocInfoVector(), BlastXML_FormatReport(), CGuideTreeCalc::CalcDistMatrix(), CAlnVec::CalculateScore(), CalculateSeqBufferLength(), CAlignShadow::CAlignShadow(), CAppJobDispatcher::CancelJob(), CObjectManagerEngine::CancelJob(), CStlClassInfoUtil::CannotGetElementOfSet(), CArg_Integer::CArg_Integer(), CArgDesc::CArgDesc(), CArgDescMandatory::CArgDescMandatory(), CArgDescSynopsis::CArgDescSynopsis(), CArgValue::CArgValue(), CBioseq_EditHandle::CBioseq_EditHandle(), CBioseq_set_EditHandle::CBioseq_set_EditHandle(), CBlastFastaInputSource::CBlastFastaInputSource(), CBlastRPSAuxInfo::CBlastRPSAuxInfo(), CBlastRPSInfo::CBlastRPSInfo(), CBlastSeqVectorFromCSeq_data::CBlastSeqVectorFromCSeq_data(), CBlobStorage_File::CBlobStorage_File(), CBlobStorage_NetCache::CBlobStorage_NetCache(), CBZip2CompressionFile::CBZip2CompressionFile(), CCgiEntryReaderContext::CCgiEntryReaderContext(), CClientPseudoDataType::CClientPseudoDataType(), CCmdLineBlastXMLReportData::CCmdLineBlastXMLReportData(), CCompartApp::CCompartment::CCompartment(), CFileByteSourceReader::CFileByteSourceReader(), CFIntron::CFIntron(), CFlatFileGenerator::CFlatFileGenerator(), CFStreamByteSource::CFStreamByteSource(), CGeneFileWriter::CGeneFileWriter(), CGeneInfoFileReader::CGeneInfoFileReader(), CGlTexture::CGlTexture(), CGridWorkerNode::CGridWorkerNode(), CSeqMapSwitchPoint::ChangeSwitchPoint(), CSeq_loc::ChangeToPackedInt(), CSeq_loc_Conversion::CheckDstInterval(), CSeq_loc_Conversion::CheckDstPoint(), TestUtil::CheckForBlastSeqSrcErrors(), CheckForEmptySequences(), CGlUtils::CheckGlError(), CSyncQueue_I< Type, Container, TNativeIterator >::CheckGuard(), SNetServerImpl::CheckIfThrottled(), COMSSASearch::CheckLibraryNameAndSize(), CSyncQueue_I< Type, Container, TNativeIterator >::CheckMatched(), CStd_seg::CheckNumRows(), CSeq_align::CheckNumRows(), CDense_seg::CheckNumRows(), CDense_diag::CheckNumRows(), CDense_seg::CheckNumSegs(), CSplicedAligner::CheckPreferences(), CGnomonEngine::CheckRange(), CReadDispatcher::CheckReaders(), CObject::CheckReferenceOverflow(), CSyncQueue_I< Type, Container, TNativeIterator >::CheckValid(), CAlnMix::ChooseSeqId(), CImportStrategy::CImportStrategy(), CClassTypeInfoBase::ClassesById(), CClassTypeInfoBase::ClassesByName(), CLocalDbAdapter::CLocalDbAdapter(), CNetCacheWriter::Close(), CSplitDataMaker::CloseDataStream(), CArg_String::CloseFile(), CMaskFastaReader::CMaskFastaReader(), CMemoryFile_Base::CMemoryFile_Base(), CMemoryFileMap::CMemoryFileMap(), CMemoryFileSegment::CMemoryFileSegment(), CMsvcPrjGeneralContext::CMsvcPrjGeneralContext(), CNcbiApplication::CNcbiApplication(), CNcbiResourceInfo::CNcbiResourceInfo(), CNetCacheKey::CNetCacheKey(), CNetCacheServer::CNetCacheServer(), CNetScheduleKey::CNetScheduleKey(), CObjMgr_QueryFactory::CObjMgr_QueryFactory(), CSeq_entry_EditHandle::CollapseSet(), CNcbiTable< TValue, TRow, TColumn >::ColumnIdx(), CScopeTransaction_Impl::Commit(), CSeqManip::Complement(), CId2Compressor::CompressChunk(), CId2Compressor::CompressHeader(), CSeqDBIdSet::Compute(), CClusterer::ComputeClusters(), TKmerMethods< TKmerCounts >::ComputeCounts(), TKmerMethods< TKmerCounts >::ComputeDistMatrix(), CBlastOptionsBuilder::ComputeProgram(), SNetServerImpl::Connect(), CSeqConvert_imp::Convert(), CSeq_loc_Conversion::Convert(), CSeq_entry_EditHandle::ConvertSeqToSet(), CSeq_entry_EditHandle::ConvertSetToSeq(), ConvertSplicedToPairwiseAln(), CPipe::CPipe(), CPrefetchBioseq::CPrefetchBioseq(), CPrefetchFeat_CI::CPrefetchFeat_CI(), CPromote::CPromote(), CPsiBlastInputData::CPsiBlastInputData(), CQueryFactoryInfo::CQueryFactoryInfo(), CReaderAllocatedConnection::CReaderAllocatedConnection(), CNullBoolFunctions::Create(), CObjectIStream::Create(), CSeqMaskerIstatFactory::create(), CBlastOptionsFactory::Create(), CDirEntry::CreateAbsolutePath(), CreateAnchoredAlnFromAln(), CBlastBioseqMaker::CreateBioseqFromId(), CSetupFactory::CreateBlastSeqSrc(), CProjBulderApp::CreateCheckList(), CWriteDB_Volume::CreateColumn(), CUniSequenceDataType::CreateDefault(), CNullDataType::CreateDefault(), CStaticDataType::CreateDefault(), CDataMemberContainerType::CreateDefault(), CSeq_align::CreateDensegFromDisc(), CSeq_align::CreateDensegFromStdseg(), CProjBulderApp::CreateFeaturesAndPackagesFiles(), CBlob_id::CreateFromString(), CNetScheduleClientFactory::CreateInstance(), CSetupFactory::CreateLookupTable(), CreateMsvcProjectMakefileName(), CWorkspacePrx::CreateNewProject(), CCgiSession::CreateNewSession(), CProjectService::CreateNewWorkspace(), CBlobStorage_File::CreateOStream(), CBlobStorage_Null::CreateOStream(), CAlignCleanup::CreatePairwiseFromMultiple(), CreateProjectName(), CQueueDataBase::CreateQueue(), CDirEntry::CreateRelativePath(), CSparseAln::CreateSegmentIterator(), CreateSeqAlignFromAnchoredAln(), CreateSeqAlignFromEachPairwiseAln(), CBlastOptions::CreateSnapshot(), CreateSplicedExonChunk(), CSeq_align::CreateTranslatedDensegFromNADenseg(), CDataType::CreateTypeInfo(), CRegexp::CRegexp(), CRemoteAppJob::CRemoteAppJob(), CRemoteBlast::CRemoteBlast(), CRemoteBlastDbAdapter::CRemoteBlastDbAdapter(), CRemoteBlastDbDataLoader::CRemoteBlastDbDataLoader(), CRemoteCgiJob::CRemoteCgiJob(), CRpsAuxFile::CRpsAuxFile(), CRpsLookupTblFile::CRpsLookupTblFile(), CRpsPssmFile::CRpsPssmFile(), CSeq_annot_EditHandle::CSeq_annot_EditHandle(), CSeq_annot_ftable_CI::CSeq_annot_ftable_CI(), CSeq_annot_ftable_I::CSeq_annot_ftable_I(), CSeq_data::CSeq_data(), CSeq_entry_EditHandle::CSeq_entry_EditHandle(), CSeqDB::CSeqDB(), CSeqDBColumn::CSeqDBColumn(), CSeqDBExtFile::CSeqDBExtFile(), CSeqDBIdxFile::CSeqDBIdxFile(), CSeqDBIsam::CSeqDBIsam(), CSeqIdAlignBitmap< TSeqAlignSeqIdVec >::CSeqIdAlignBitmap(), CSeqMap_CI::CSeqMap_CI(), CSeqMasker::CSeqMasker(), CSeqMaskerIstatAscii::CSeqMaskerIstatAscii(), CSeqMaskerIstatBin::CSeqMaskerIstatBin(), CSeqMaskerIstatOAscii::CSeqMaskerIstatOAscii(), CSeqMaskerIstatOBinary::CSeqMaskerIstatOBinary(), CSequenceIStreamFasta::CSequenceIStreamFasta(), CSeqVecSeqInfoSrc::CSeqVecSeqInfoSrc(), CSettingsSet::CSettingsSet(), CGuideTree::CSingleBlastNameExaminer::CSingleBlastNameExaminer(), CSplitQueryBlk::CSplitQueryBlk(), CSubstMatrix::CSubstMatrix(), CSymbolGuard::CSymbolGuard(), CSyncQueue< Type, Container >::CSyncQueue(), CSysLog::CSysLog(), CThemeSet::CThemeSet(), CTime::CTime(), CTimeSpan::CTimeSpan(), CTmpFile::CTmpFile(), CTransmissionWriter::CTransmissionWriter(), CVariant::CVariant(), CWinMaskConfig::CWinMaskConfig(), CWinMaskCountsConverter::CWinMaskCountsConverter(), CWorkerNodeAffinityGuard::CWorkerNodeAffinityGuard(), CWriteDB_CreateAliasFile(), CZipCompressionFile::CZipCompressionFile(), CProcess::Daemonize(), CSubSource::DateFromCollectionDate(), CTime::DayOfWeek(), CTime::DaysInMonth(), Decode(), CTypeInfo::Delete(), CBDB_Volumes::Delete(), CArgDescriptions::Delete(), CAppJobDispatcher::DeleteJob(), CQueueDataBase::DeleteQueue(), IBlobStorage::DeleteStorage(), CBDB_BvSplitDictStore< Key, Dictionary, BvStore, BV >::Deserialize(), Deserialize(), CUnsupportedEditSaver::Detach(), CTime::DiffTimeSpan(), SNetServiceImpl::DiscoverServers(), CNCBINode::DoAppendChild(), CSeq_data::DoConstruct(), CObject::DoDeleteThisObject(), CObject::DoNotDeleteThisObject(), CSeqMaskerOstatAscii::doSetUnitCount(), CProjBulderApp::DumpFiles(), CSQLITE_Global::EnableSharedCache(), CExtraEncoder::Encode(), Encode(), CProjBulderApp::EnumOpt(), CSerialObject::Equals(), CObjectInfoMI::Erase(), CTreeLevelIterator::Erase(), CInputModel::Error(), CQueryFunctionEQ::Evaluate(), CQueryFunction_BV_In_Or< BV >::Evaluate(), CQueue::ExecSelect(), CObjectManagerEngineAction::Execute(), CPipe::ExecWait(), CGuideTree::ExpandCollapseSubtree(), ExportTableControlToCSV(), CMemoryFile::Extend(), CFileModules::ExternalResolve(), CDataTypeModule::ExternalResolve(), CSeqDataExtractor::Extract(), CFormattingArgs::ExtractAlgorithmOptions(), CFilteringArgs::ExtractAlgorithmOptions(), ExtractBlast4Request(), CDense_seg::ExtractRows(), ExtractSeqVector(), CSubjectMap_Factory_Base::extractSeqVector(), CDense_seg::ExtractSlice(), CQueue::FailJob(), CBDB_Volumes::FetchVolumeRec(), CDiagFilter::Fill(), CSeqMaskerOstat::finalize(), CNetScheduleControl::FinalizeRead(), CClusterer::CSingleCluster::FindCenterElement(), COMSSASearch::FindMinMaxSearchSettingId(), COMSSASearch::FindMinMaxSpectrumNumber(), CEnumeratedTypeValues::FindName(), CEnumeratedTypeValues::FindValue(), COStreamBuffer::Flush(), CFileIO::Flush(), COStreamBuffer::FlushBuffer(), CThreadPool_Impl::FlushThreads(), CProcess::Fork(), FrBackAlign(), CSplign::SAlignedCompartment::FromBuffer(), CNWFormatter::SSegment::FromBuffer(), CDense_seg::FromTranscript(), g_GetPasswordFromConsole(), CFlatFileGenerator::Generate(), CNetCacheKey::GenerateBlobKey(), CTimeout::Get(), CSimpleClipboard::Get(), CSeqMaskerUsetHash::get_info(), GetAccessionForGi(), GetAccessionForId(), GetAllSwitchPoints(), CSparseAln::GetAlnSeqString(), CSeqDB::GetAmbigSeqAlloc(), CDataType::GetAndVerifyVar(), CSeq_entry::GetAnnot(), CNcbiApplication::GetArgs(), CUrl::GetArgs(), CTimeout::GetAsDouble(), CTimeout::GetAsMilliSeconds(), CTimeout::GetAsTimeSpan(), CClipboard::GetAt(), CCgiSession_NetCache::GetAttribute(), CCgiSession_NetCache::GetAttrIStream(), CPub::GetAuthors(), GetBase(), GetBioseq(), CSeqDBVol::GetBioseq(), GetBioseq_set(), CScope::GetBioseq_setEditHandle(), CScope::GetBioseqEditHandle(), CSparseAln::GetBioseqHandle(), CStdPrefetch::GetBioseqHandle(), CScoreBuilder::GetBlastEValue(), CScoreBuilder::GetBlastScore(), CBlastQuerySourceBioseqSet::GetBlastSequence(), CBlobStorage_NetCache::GetBlobAsString(), CDataLoader::GetBlobById(), CDataLoader::GetBlobIdFromString(), CId1Reader::GetBlobVersion(), CBondList::GetBondType(), CQueryParseNode::GetBool(), CConfig::GetBool(), CHTML_table_Cache::GetCellNode(), CTSE_Split_Info::GetChunk(), CDataLoader::GetChunk(), CClassTypeInfoBase::GetClassInfoById(), CClassTypeInfoBase::GetClassInfoByName(), CClusterer::GetClusterDistMatrix(), CSeqUtil::GetCodingType(), CCgiRequest::GetContent(), CSeqMap_CI::GetData(), CAlnSpanVertModel::GetData(), CAlnTableDS::GetData(), CBlastServices::GetDatabaseInfo(), CPluginValue::GetDataHandle(), CConfig::GetDataSize(), CSplicedAligner32::GetDefaultWi(), CSplicedAligner16::GetDefaultWi(), CAlnMixMerger::GetDenseg(), CSeq_entry::GetDescr(), CClusterer::GetDistMatrix(), CQueryParseNode::GetDouble(), CProt_ref::GetECNumberReplacement(), CTypeStrings::GetEnumName(), CExec::CResult::GetExitCode(), CProSplign::CImplementation::GetExons(), CCgiCookie::GetExpDate(), CObjectListTableModel::GetExtraColumnName(), CSeqSearchTableModel::GetExtraColumnName(), CDocsumTableModel::GetExtraColumnName(), CNetBlastJobTableModel::GetExtraColumnName(), CObjectListTableModel::GetExtraValueAt(), CDocsumTableModel::GetExtraValueAt(), CNetBlastJobTableModel::GetExtraValueAt(), CStdPrefetch::GetFeat_CI(), CUser_field::GetField(), CProSplign::CImplementation::GetFlanks(), CPdfFontHandler::GetFontName(), CDataType::GetFullCType(), CGnomonEngine::GetGenes(), CBioseq_set::GetGenomicFromGenProdSet(), CSeq_id_Which_Tree::GetGiHandle(), CTime::GetGmtTime(), GetId(), CCgiSession::GetId(), CSeqVecSeqInfoSrc::GetId(), CAlignShadow::GetId(), CQueryParseNode::GetIdent(), CSeqMapSwitchPoint::GetInsert(), CQueryParseNode::GetInt(), CConfig::GetInt(), CPrimitiveTypeInfo::GetIntegerTypeInfo(), CGuiRegistry::GetIntVec(), CTypeStrings::GetIsSetCode(), CBlobStorage_File::GetIStream(), CBlobStorage_NetCache::GetIStream(), CBlobStorage_Null::GetIStream(), CItemsInfo::GetItemsByName(), CItemsInfo::GetItemsByOffset(), CItemsInfo::GetItemsByTagInfo(), CGridThreadContext::GetJob(), CRADispatcherClient::GetJobState(), CDefaultLengthGetter::GetLength(), GetLength(), CBlobSplitterImpl::GetLength(), CSeqVecSeqInfoSrc::GetLength(), CBlastQuerySourceBioseqSet::GetLength(), CSeq_entry_Info::GetLoadedAnnot(), CTime::GetLocalTime(), CThreadPool_Controller::GetMainPoolMutex(), CBioseq_set::GetMasterFromSegSet(), CSeq_id_Mapper::GetMatchingHandlesStr(), CTraceData::GetMax(), CAlignShadow::GetMax(), CMedia::GetMedia(), CProjBulderApp::GetMetaMakefile(), CAlignShadow::GetMin(), CSeqDBIdSet::GetNegativeList(), GetNetBlastJobDescription(), CMaskFastaReader::GetNextSequence(), CVariant::GetNonNullData(), CBioseq_set::GetNucFromNucProtSet(), GetNumberOfContexts(), CPluginValue::GetObject(), CSeqDBVol::GetOidAtOffset(), CSeqDBImpl::GetOidAtOffset(), GetOrg_ref(), CBlobStreamHelper::GetOStream(), CGridJobBatchSubmitter::GetOStream(), CSeq_id_Info::GetPackedSeqId(), CSeqDBIdSet::GetPositiveList(), CExec::CResult::GetProcessHandle(), CPluginValue::GetProject(), CCgiRequest::GetPropertyName(), GetProteinWeight(), GetProteinWeights(), CChoicePointerTypeInfo::GetPtrIndex(), CQueueCollection::GetQueue(), CNetScheduleHandler::GetQueue(), CSeqDBVol::GetRawSeqAndAmbig(), SNetCacheAPIImpl::GetReadStream(), CGBDataLoader::GetRealBlobId(), CGuiRegistry::GetRealVec(), CDataLoader::GetRecords(), CSeqMap_CI::GetRefData(), CSeqMap_CI_SegmentInfo::GetRefPosition(), CSeqMap_CI::GetRefSeqid(), CReadObjectList::GetRegisteredObject(), CAlnMap::GetResidueIndexMap(), CRADispatcherClient::GetResult(), CMultiAligner::GetResults(), CSearchResultSet::GetResults(), CNcbiTable< TValue, TRow, TColumn >::GetRow(), CSeq_align_Mapper_Base::GetRowId(), CDataSource_ScopeInfo::GetScopeImpl(), CRemoteBlast::GetSearchStrategy(), GetSentinelByte(), CScope::GetSeq_annotEditHandle(), GetSeq_entry(), CScope::GetSeq_entryEditHandle(), CSeq_loc_CI::GetSeq_loc(), CAlnMixMerger::GetSeqAlign(), CSeqDBVol::GetSeqData(), CDbIndex::GetSeqData(), CFlatFileGenerator::GetSeqFeatText(), CDbIndex::GetSeqLen(), CSeqVecSeqInfoSrc::GetSeqLoc(), CSpliced_seg::GetSeqRange(), CSeq_align::GetSeqRange(), CSeq_align::GetSeqStart(), CDense_seg::GetSeqStart(), CDense_diag::GetSeqStart(), CSeq_align::GetSeqStop(), CDense_seg::GetSeqStop(), CSpliced_seg::GetSeqStrand(), CSeq_align::GetSeqStrand(), CDense_seg::GetSeqStrand(), CDense_diag::GetSeqStrand(), CAlnMixSeq::GetSeqString(), GetSequence_OMF(), GetSequenceNucleotideBothStrands(), GetSequenceProtein(), GetSequenceSingleNucleotideStrand(), CGuideTreeCalc::GetSerialTree(), CThemeSet::GetSettingsSet(), CClusterer::GetSingleCluster(), SNetServiceImpl::GetSingleServer(), CSeq_entry_Handle::GetSingleSubEntry(), CSiteList::GetSiteType(), CCompartApp::CCompartment::GetSpan(), CSeq_loc::GetStart(), CAlignShadow::GetStart(), CSeq_loc::GetStop(), CAlignShadow::GetStop(), CSeq_loc::GetStrand(), CAlignShadow::GetStrand(), CArgValue::GetStringList(), CGuiRegistry::GetStringVec(), CQueryParseNode::GetStrValue(), CImage::GetSubImage(), GetSwitchPoint(), CSeqDBImpl::GetTaxInfo(), CSeqDBTaxInfo::GetTaxNames(), CNcbiTestApplication::GetTestUnit(), CNetICacheClient::GetTimeStampPolicy(), CTime::GetTimeT(), CTitle::GetTitle(), CNWAligner::GetTranscriptString(), CClusterer::GetTree(), CMultiAligner::GetTreeContainer(), CArgDescriptions::GetTypeName(), CBuildType::GetTypeStr(), CCompressionUtil::GetUI2(), CCompressionUtil::GetUI4(), CAlnSpanVertModel::GetValueAt(), CAlnTableDS::GetValueAt(), CTraceData::GetValues(), CNetICacheClient::GetVersionRetention(), CSplicedAligner::GetWi(), CCleanupApp::HandleSeqEntry(), CAsn2FlatApp::HandleSeqEntry(), CSeqDBVol::HashToOids(), CMsvc7RegSettings::IdentifyPlatform(), CFileCode::Include(), CImage::Init(), CTextPanel::Init(), CSparseMultiDataSource::Init(), CGlLight::Init(), CElementaryMatching::CBoolVector::Init(), CNSeq::Init(), CAlnMixSequences::InitExtraRowsStartIts(), CProjectsLstFileFilter::InitFromFile(), CDiscreteDistribution::InitFromParameter(), CMsvcConfigure::InitializeFrom(), CAlnMixSequences::InitRowsStartIts(), CGuideTreeCalc::InitTreeFeatures(), CRangeMultimap< Mapped, Position >::insert(), CRangeMap< Mapped, Position >::insert(), CSeqMapSwitchPoint::InsertInPlace(), CSeqDBGiList::InsureOrder(), CPrefetchManager::IsActive(), CGroupMapWidget::IsExpanded(), CDirEntry::IsNewer(), CBlastBioseqMaker::IsProtein(), CSeqMap_CI::IsUnknownLength(), CTimeout::IsZero(), AbstractLexer::LexerError(), CSplitParser::Load(), CGlTexture::Load(), CCgiSession::Load(), CDbIndex::Load(), CDataTool::LoadDefinitions(), CSimpleMakeFileContents::LoadFrom(), CDbIndex::LoadIndex(), LoadIndexedOctetStringsFrom(), LoadIndexedStringsFrom(), CFileCode::LoadLines(), CWorkspacePrx::LoadProject(), CSeqMap::LoadSeq_data(), CAlnMrgApp::LoadSeqEntry(), LoadTableSettings(), CProjectService::LoadWorkspace(), CFileLock::Lock(), CInterProcessLock::Lock(), CBDB_Volumes::LockVolume(), CNWAligner::MakePattern(), CNWFormatter::MakeSegments(), CAliToSeq_align::MakeSeq_align(), CSeq_loc_Mapper_Base::Map(), CMemoryFileMap::Map(), MapSeq_feat(), CAlnMixMerger::Merge(), CBlastTabular::Modify(), CAlignShadow::Modify(), CCgiSession::ModifyId(), CCgiSession_NetCache::ModifySessionId(), CTime::MonthNumToName(), CEnumeratedTypeValues::NameToValue(), ncbi_q_parse(), CFlatItemFormatter::New(), CFlatGatherer::New(), CDelta_ext_PackTarget::NewSegment(), NotNull(), CCleanupApp::ObtainSeqEntryFromBioseq(), CAsn2FlatApp::ObtainSeqEntryFromBioseq(), CAsn2FastaApp::ObtainSeqEntryFromBioseq(), CCleanupApp::ObtainSeqEntryFromBioseqSet(), CAsn2FlatApp::ObtainSeqEntryFromBioseqSet(), CAsn2FastaApp::ObtainSeqEntryFromBioseqSet(), CStd_seg::OffsetRow(), CSeq_align::OffsetRow(), CDense_seg::OffsetRow(), CDense_diag::OffsetRow(), SNetScheduleAPIImpl::CNetScheduleServerListener::OnError(), CNetCacheServerListener::OnError(), CObjectOStream::Open(), CSQLITE3_Cache::Open(), CDBAPI_Cache::Open(), CFileIO::Open(), open_ofstream(), CExec::CResult::operator intptr_t(), CAlnSeqIdsExtract< TAlnSeqId >::operator()(), CSeqIdBioseqHandleComp< TSeqIdPtr >::operator()(), CFrameFinder::operator()(), CHitComparator< THit >::operator()(), CPluginValueConstraint::operator,(), CTimeout::operator<(), operator<<(), CTimeout::operator<=(), CThreadPool_Task::operator=(), CTimeout::operator==(), CBlastOptions::operator==(), CTimeout::operator>(), CTimeout::operator>=(), CArgs::operator[](), CClusterer::CSingleCluster::operator[](), CSearchResultSet::operator[](), CBlastSeqVectorFromCSeq_data::operator[](), CAlnIdMap< _TAlnVec, TAlnSeqIdExtract >::operator[](), CNetServProtoParserBase::ParseArguments(), CProjBulderApp::ParseArguments(), CNetServProtoParserBase::ParseCommand(), AbstractParser::ParseError(), ParseSequenceRange(), CSeq_descr::PostRead(), CQueue::PrepareFields(), CGridJobBatchSubmitter::PrepareNextJob(), CHTMLText::PrintBegin(), CGnomonEngine::PrintInfo(), CPsiBlastInputData::Process(), CPsiBlastInputClustalW::Process(), CArgDescMandatory::ProcessArgument(), CProcessor::ProcessBlobFromID2Data(), CProcessor_ID2::ProcessData(), CArgDescMandatory::ProcessDefault(), CNetScheduleHandler::ProcessJobRunTimeout(), CProcessor::ProcessObjStream(), CRemoteAppDispatcher::ProcessRequest(), ProgramNameToEnum(), CPromote::PromoteFeatures(), PromoteIfDifferent(), PsiBlastSetupScoreBlock(), CPsiBlastValidate::Pssm(), CNetICacheClient::Purge(), CAlnIdMap< _TAlnVec, TAlnSeqIdExtract >::push_back(), CBlockingQueue< TRequest >::Put(), CNetScheduleExecuter::PutFailure(), CNetScheduleExecuter::PutProgressMsg(), CQueue::PutResultGetJob(), CPsiBlastValidate::QueryFactory(), CBlastQueryFilteredFrames::QueryHasMultipleFrames(), CQueueDataBase::QueueInfo(), CZipCompressionFile::Read(), CNlmZipBtRdr::Read(), CSeq_annot_SNP_Info_Reader::Read(), CAlnAsnReader::Read(), SNetCacheAPIImpl::ReadBuffer(), SNetServerConnectionImpl::ReadCmdOutputLine(), CBDB_File::ReadCursor(), ReadFastaQueries(), CGeneFileUtils::ReadGeneInfo(), CImageIOTiff::ReadImage(), CImageIOSgi::ReadImage(), CImageIORaw::ReadImage(), CImageIOPng::ReadImage(), CImageIOJpeg::ReadImage(), CImageIOGif::ReadImage(), CImageIOBmp::ReadImage(), CImageIOTiff::ReadImageInfo(), CImageIOSgi::ReadImageInfo(), CImageIORaw::ReadImageInfo(), CImageIOPng::ReadImageInfo(), CImageIOJpeg::ReadImageInfo(), CImageIOGif::ReadImageInfo(), CImageIOBmp::ReadImageInfo(), CReader::ReadInt(), CResultZBtSrcX::ReadLength(), CSeqMaskerIstatOBinary::readWord(), CSeqDB_IdRemapper::RealToVol(), CWriteObjectList::RegisterObject(), CWorkbench::RegisterService(), SNetICacheClientImpl::RegisterUnregisterSession(), CPIDGuard::Release(), CObject::ReleaseReference(), CClusterer::ReleaseTree(), CStd_seg::RemapToLoc(), CSeq_align::RemapToLoc(), CUnsupportedEditSaver::Remove(), CScope::RemoveAnnot(), CDataSource::RemoveAnnot(), CBioseq_Base_Info::RemoveAnnot(), CScope_Impl::RemoveDataLoader(), CUnsupportedEditSaver::RemoveDesc(), CDataSource::RemoveEntry(), CBioseq_set_Info::RemoveEntry(), CTSE_ScopeInfo::RemoveFromHistory(), CUnsupportedEditSaver::RemoveId(), CSeqMap::RemoveSegment(), CScope_Impl::RemoveTopLevelSeqEntry(), CUnsupportedEditSaver::RemoveTSE(), CBDB_RawFile::Rename(), CUnsupportedEditSaver::Replace(), CScope::ReplaceAnnot(), CDataSource::ReplaceAnnot(), ReplaceVisibleChar(), CPtrToObjectExProxy::ReportIncompatibleType(), CObjectCounterLocker::ReportIncompatibleType(), CJobStatusTracker::ReportInvalidStatus(), CThreadPool_Impl::RequestExclusiveExecution(), CWorkerNodeJobContext::RequestExclusiveMode(), SNetServiceImpl::RequireStandAloneServerSpec(), CSeqDB::TSequenceRanges::reserve(), CSparseKmerCounts::ReserveCountsMem(), CNcbiArguments::Reset(), CRADispatcherClient::Reset(), CSequence::Reset(), CSparseKmerCounts::Reset(), CUnsupportedEditSaver::ResetBioseqSetClass(), CUnsupportedEditSaver::ResetBioseqSetColl(), CUnsupportedEditSaver::ResetBioseqSetDate(), CUnsupportedEditSaver::ResetBioseqSetId(), CUnsupportedEditSaver::ResetBioseqSetLevel(), CUnsupportedEditSaver::ResetBioseqSetRelease(), CUnsupportedEditSaver::ResetDescr(), CUnsupportedEditSaver::ResetIds(), CUnsupportedEditSaver::ResetSeqInst(), CUnsupportedEditSaver::ResetSeqInstExt(), CUnsupportedEditSaver::ResetSeqInstFuzz(), CUnsupportedEditSaver::ResetSeqInstHist(), CUnsupportedEditSaver::ResetSeqInstLength(), CUnsupportedEditSaver::ResetSeqInstMol(), CUnsupportedEditSaver::ResetSeqInstRepr(), CUnsupportedEditSaver::ResetSeqInstSeq_data(), CUnsupportedEditSaver::ResetSeqInstStrand(), CUnsupportedEditSaver::ResetSeqInstTopology(), CDataTypeModule::Resolve(), CThreadPoolEngine::ResumeJob(), CSchedulerEngine::ResumeJob(), CAppJobDispatcher::ResumeJob(), CObjectManagerEngine::ResumeJob(), CNetBlastJobDescriptor::Retrieve(), CSeqManip::Reverse(), CSeq_align::Reverse(), CSeqManip::ReverseComplement(), CObjectManager::RevokeDataLoader(), CScopeTransaction_Impl::RollBack(), CTime::Round(), CNcbiTable< TValue, TRow, TColumn >::RowIdx(), CImageTestApp::Run(), CFeatCompareJob_Location::Run(), CGBProjectTool::Run(), CThreadedServer::Run(), CSplignApp::Run(), CId1FetchApp::Run(), CNetCacheCheckApp::Run(), CNSRemoveJobControlApp::Run(), CAsnvalApp::Run(), CCleanupApp::Run(), CAsn2FlatApp::Run(), CAsn2FastaApp::Run(), CAnnotWriterApp::Run(), CMultiApplication::Run(), CBlastTracebackSearch::Run(), CLocalPssmSearch::Run(), CLocalSeqSearch::Run(), CAppHitFilter::Run(), CCompartApp::Run(), CSplign::Run(), CPSSMAligner::Run(), CNWAligner::Run(), CBl2Seq::RunFullSearch(), s_AddBioseqToPartsSet(), s_AgpWrite(), s_AppendZeros(), s_BlastMessageToException(), s_BuildSeqMasker(), s_CheckAgainstNullData(), s_CheckDistMatrix(), s_CheckForBlastSeqSrcErrors(), s_CheckInputSize(), s_CheckOutputSize(), CSplign::s_ComputeStats(), s_Convert(), s_Date2Number(), s_ExportSearchStrategy(), s_ExtractFilteringAlgorithmIds(), s_FillModuleListPSAPI(), s_FillModuleListTH32(), s_GetBioseq(), s_GetDetails(), s_GetFileSystemInfo(), s_GetLocations(), s_GetMakefileIncludes(), s_GetRealCompileFlags(), s_GetRealMatchFlags(), s_GetSeqTypeChar(), s_GetTimeT(), s_GrabSOCK(), s_ImportPssm(), s_ImportSearchStrategy(), s_InitSeqInfoSrc(), s_IsamExtension(), s_LOCK_Handler(), CHitFilter< THit >::s_MergeAbutting(), s_ParseGetJobResponse(), s_ParseInt(), s_ParseStr(), s_QueryFactoryBlastSeqSrcInit(), CSplignApp::s_ReadBlastHit(), s_ReadGiList(), s_ReadObject(), CHitFilter< THit >::s_RunGreedy(), s_SeqDB_IsBinaryGiList(), s_SeqDBFitsInFour(), s_SetAnyContentFromFields(), s_SetCompositionBasedStats(), s_ThrowSomeException(), CHitFilter< THit >::s_TrackHit(), s_UnpackContainerField(), s_Validate(), SafeSetupQueryInfo(), sAssertMainThread(), CGBProjectHandle::Save(), CNcbiResourceInfoFile::SaveFile(), SaveTableSettings(), CProjectService::SaveWorkspace(), SBlastSequence::SBlastSequence(), SCmdLineArgListImpl::SCmdLineArgListImpl(), CSplicedAligner32::ScoreFromTranscript(), CSplicedAligner16::ScoreFromTranscript(), CNWAligner::ScoreFromTranscript(), CByteSourceReader::Seekg(), SelectCompartmentsHits(), CSeq_entry_Info::SelectSeq(), CSeq_entry_Info::SelectSet(), SeqDB_ReadBinaryGiList(), SeqDB_ReadMemoryGiList(), SeqDB_ReadMemoryTiList(), SeqDB_ThrowException(), SeqDB_UnpackAmbiguities(), SerialAssign(), SerialEquals(), Serialize(), CRegexp::Set(), CTextseq_id::Set(), CSeq_id::Set(), CTimeout::Set(), CTimeSpan::Set(), CNcbiEnvironment::Set(), SRegisterLoaderInfo< TLoader >::Set(), CSafeStaticRef< T >::Set(), CSafeStaticPtr< T >::Set(), CScope_Impl::SetActiveTransaction(), CImage::SetAlpha(), CAlnMap::SetAnchor(), CArgDescriptions::SetArgsType(), CBDB_Volumes::SetBackupLocation(), CUnsupportedEditSaver::SetBioseqSetClass(), CUnsupportedEditSaver::SetBioseqSetColl(), CUnsupportedEditSaver::SetBioseqSetDate(), CUnsupportedEditSaver::SetBioseqSetId(), CUnsupportedEditSaver::SetBioseqSetLevel(), CUnsupportedEditSaver::SetBioseqSetRelease(), CWriteDB_Impl::SetBlobData(), CCompressionStreambuf::setbuf(), CPushback_Streambuf::setbuf(), CConn_Streambuf::setbuf(), CCompressionProcessor::SetBusy(), CCache< TKey, TValue, THandler, TLock, TSize >::SetCapacity(), CBlastSeqVectorFromCSeq_data::SetCoding(), CPhyloTreeScheme::SetColor(), CSplign::SetCompartmentPenalty(), CArgDescriptions::SetConstraint(), CArgDesc::SetConstraint(), CRemoteBlast::SetDatabase(), CBDB_Volumes::SetDateRange(), CTime::SetDay(), CVariantInfo::SetDelayBuffer(), CUnsupportedEditSaver::SetDescr(), CSeq_entry_EditHandle::SetDescr(), CBioseq_set_EditHandle::SetDescr(), CBioseq_EditHandle::SetDescr(), CSeq_entry::SetDescr(), SetDiagDieLevel(), SetDiagPostLevel(), CUniSequenceDataType::SetElementType(), CRemoteBlast::SetEntrezQuery(), CArgDescriptions::SetErrorHandler(), CProSplign::CImplementation::SetExons(), CUser_field::SetFieldRef(), CGuiRegistry::CReadWriteView::SetFieldToValue(), CRegistryFile::SetFieldToValue(), CFileIO::SetFilePos(), CFileIO::SetFileSize(), CSQLITE_Connection::SetFlags(), CProSplign::CImplementation::SetFlanks(), CSearchDatabase::SetGiListLimitation(), CCgiResponse::SetHeaderValue(), CAlignShadow::SetId(), CGridJobBatchSubmitter::SetJobAffinity(), CGridJobBatchSubmitter::SetJobInput(), CGridJobBatchSubmitter::SetJobMask(), CGridJobBatchSubmitter::SetJobTags(), CPrefetchRequest::SetListener(), CObjectManager::SetLoaderOptions(), CWriteDB_Impl::SetMaskedLetters(), CAlignShadow::SetMax(), CAlignShadow::SetMin(), CSplign::SetMinCompartmentIdentity(), CSplign::SetMinExonIdentity(), CSplign::SetMinSingletonIdentity(), CTypeInfo::SetModuleName(), CEnumeratedTypeValues::SetModuleName(), CTime::SetMonth(), CSearchDatabase::SetNegativeGiListLimitation(), CVariantInfo::SetObjectPointer(), CBlastAppArgs::SetOptions(), CSeqMaskerOstat::setParam(), CServer::SetParameters(), CClassTypeInfo::SetParentClass(), CVariantInfo::SetPointer(), CChoicePointerTypeInfo::SetPointerType(), CPrefetchRequest::SetProgress(), CPsiBlastImpl::SetPssm(), CMultiAligner::SetQueries(), CRemoteBlast::SetQueries(), CRemotePssmSearch::SetQuery(), CRemoteSeqSearch::SetQueryFactory(), CRemoteBlast::SetQueryMasks(), CSeqMap::SetRegionInChunk(), CPSSMAligner::SetScoreMatrix(), CTSE_Info::SetSeq_entry(), CUnsupportedEditSaver::SetSeqInst(), CUnsupportedEditSaver::SetSeqInstExt(), CUnsupportedEditSaver::SetSeqInstFuzz(), CUnsupportedEditSaver::SetSeqInstHist(), CUnsupportedEditSaver::SetSeqInstLength(), CUnsupportedEditSaver::SetSeqInstMol(), CUnsupportedEditSaver::SetSeqInstRepr(), CUnsupportedEditSaver::SetSeqInstSeq_data(), CUnsupportedEditSaver::SetSeqInstStrand(), CUnsupportedEditSaver::SetSeqInstTopology(), CSeq_loc_Mapper_Base::SetSeqTypeById(), CPSSMAligner::SetSequences(), CNWAligner::SetSequences(), CThemeSet::SetSettingsSet(), CBandAligner::SetShift(), CPhyloTreeScheme::SetSize(), CAlignShadow::SetStart(), CAlignShadow::SetStop(), CAlignShadow::SetStrand(), CArgValue::SetStringList(), CVariantInfo::SetSubClass(), CRemoteBlast::SetSubjectSequences(), CParam< TDescription >::SetThreadDefault(), CNetICacheClient::SetTimeStampPolicy(), CTime::SetTimeTM(), CDiscNucleotideOptionsHandle::SetTraditionalBlastnDefaults(), CSeqMaskerOstat::setUnitCount(), CSeqMaskerOstat::setUnitSize(), SetupQueryInfo_OMF(), CBl2Seq::SetupSearch(), SetupSubjects_OMF(), CHTML_tc_Cache::SetUsed(), CEnumeratedTypeInfo::SetValueInt8(), CEnumeratedTypeInfo::SetValueUint4(), CEnumeratedTypeInfo::SetValueUint8(), CNetICacheClient::SetVersionRetention(), CSplicedAligner::SetWi(), CDiscNucleotideOptionsHandle::SetWordSize(), CTime::SetYear(), CGuideTree::SimplifyTree(), IBlastSeqVector::size(), SNetICacheClientImpl::SNetICacheClientImpl(), SNetScheduleAPIImpl::SNetScheduleAPIImpl(), CBDB_Volumes::SortVolumes(), SplitQuery_GetChunkSize(), CAlnMixSegment::StartItsConsistencyCheck(), CThreadPoolEngine::StartJob(), CSchedulerEngine::StartJob(), CRADispatcherClient::StartJob(), CBDB_MergeStoreAsync< BStore >::Store(), CCompressionUtil::StoreUI2(), CCompressionUtil::StoreUI4(), CParamParser< TDescription >::StringToValue(), CGridJobBatchSubmitter::Submit(), CQueue::Submit(), SNetScheduleSubmitterImpl::SubmitJobImpl(), CThreadPoolEngine::SuspendJob(), CSchedulerEngine::SuspendJob(), CAppJobDispatcher::SuspendJob(), CObjectManagerEngine::SuspendJob(), CSeq_align::SwapRows(), CDense_seg::SwapRows(), CTypeRef::sx_GetAbort(), CTypeRef::sx_GetProc(), CTypeRef::sx_GetResolve(), CHitFilter< THit >::sx_Merge(), CExec::System(), CSeq_annot_EditHandle::TakeAllAnnots(), CContainerTypeInfoFunctions::Throw(), ThrowAddProhibited(), CStlClassInfoUtil::ThrowDuplicateElementError(), CVoidTypeFunctions::ThrowException(), ThrowIllegalCall(), ThrowIncompatibleValue(), ThrowIntegerOverflow(), SSystemFastMutex::ThrowLockFailed(), SSystemMutex::ThrowNotOwned(), ThrowSyncQueueEmpty(), ThrowSyncQueueNoRoom(), ThrowSyncQueueTimeout(), SSystemFastMutex::ThrowTryLockFailed(), CSerialObject::ThrowUnassigned(), SSystemFastMutex::ThrowUninitialized(), SSystemFastMutex::ThrowUnlockFailed(), CSplign::SAlignedCompartment::ToBuffer(), CNWFormatter::SSegment::ToBuffer(), CConn_MemoryStream::ToCStr(), CConn_MemoryStream::ToString(), CTime::ToTime(), CConn_MemoryStream::ToVector(), CAlnVec::TranslateNAToAA(), CRemoveTSE_EditCommand::Undo(), UnicodeToAscii(), CUnit::UnitToString(), CWorkspacePrx::UnloadProject(), CFileLock::Unlock(), CInterProcessLock::Unlock(), CLockVectorGuard< TLockVect >::Unlock(), CBDB_Volumes::UnLockVolume(), CWorkbench::UnRegisterService(), CMD5::Update(), CSpliced_seg::Validate(), CSeq_align::Validate(), CDense_seg::Validate(), CDense_diag::Validate(), CWinMaskConfig::Validate(), CMultiAlignerOptions::Validate(), CBlastOptionsLocal::Validate(), CBlockingQueue< TRequest >::WaitForHunger(), CBlockingQueue< TRequest >::WaitForRoom(), CZipCompressionFile::Write(), CSeq_annot_SNP_Info_Reader::Write(), CBinaryListBuilder::Write(), CBlastDbFormatter::Write(), CDBAPI_CacheIWriter::Write(), CNCBlob::Write(), SNetCacheAPIImpl::WriteBuffer(), CWriter::WriteBytes(), CCgiResponse::WriteHeader(), CImageIOTiff::WriteImage(), CImageIOSgi::WriteImage(), CImageIOPng::WriteImage(), CImageIOJpeg::WriteImage(), CImageIOGif::WriteImage(), CImageIOBmp::WriteImage(), SNetServerConnectionImpl::WriteLine(), CCmdLineArgList::WriteLine(), CMsvcConfigure::WriteNcbiconfMsvcSite(), CWriteDB_Volume::WriteSequence(), CObjectTypeInfo::WrongTypeFamily(), CPoolOfThreads< TRequest >::x_AcceptRequest(), CSeqMap::x_Add(), CArgDescriptions::x_AddDesc(), CTime::x_AddHour(), CGBProjectTool::x_AddItem(), CMakeBlastDBApp::x_AddSequenceData(), CWriteDB_IsamIndex::x_AddStringIds(), CNcbiTestTreeElement::x_AddToMustLeft(), CNcbiTestTreeElement::x_AddToMustRight(), CReader::x_AllocConnection(), CDataLoaderPatcher::x_ApplyPatches(), CRequestRateControl::x_Approve(), CNetServProtoParserBase::x_ArgumentMatch(), CObjectListTableModel::x_AssertRowValid(), CObjectList::x_AssertValidColumn(), CObjectList::x_AssertValidRow(), x_Assign(), CMaskInfoRegistry::x_AssignId(), CBioseq_Info::x_AttachMap(), CThreadPool_Controller::x_AttachToPool(), CBlastQuerySourceBioseqSet::x_BioseqSanityCheck(), CMakeBlastDBApp::x_BuildDatabase(), CBioseq_Info::x_CalcBioseqLength(), CBDB_Volumes::x_ChangeCurrentStatus(), CQueue::x_ChangeGroupStatus(), CBlobStorage_NetCache::x_Check(), CNetScheduleHandler::x_CheckAccess(), CQueryFunctionEQ::x_CheckArgs(), CArgDescriptions::x_CheckAutoHelp(), CTextRetrieveJob::x_CheckCancelled(), CRemoteBlast::x_CheckConfig(), CSQLITE_Connection::x_CheckFlagsValidity(), CBandAligner::x_CheckParameters(), CNCBlobStorage::x_CheckReadOnly(), CCgiSession_NetCache::x_CheckStatus(), CSeq_entry_Info::x_CheckWhich(), CMultiAligner::x_ComputeTree(), CWriteDB_Impl::x_CookSequence(), CNCBlob::x_CorruptedDatabase(), CMemoryFileMap::x_Create(), CElementaryMatching::x_CreateIndex(), CMergeAlignmentsJob::x_CreateProjectItems(), CGroupAlignmentsJob::x_CreateProjectItems(), CCreateNeedlemanWunschJob::x_CreateProjectItems(), CCreateGeneModelJob::x_CreateProjectItems(), CCleanupAlignmentsJob::x_CreateProjectItems(), CPssmEngine::x_CreatePssmFromFreqRatios(), CPssmEngine::x_CreatePssmFromMsa(), CGBDataLoader::x_CreateReader(), CElementaryMatching::x_CreateRemapData(), CGBDataLoader::x_CreateWriter(), CBlastTabular::x_Deserialize(), CSplicedAligner32::x_DoBackTrace(), CSplicedAligner16::x_DoBackTrace(), CBandAligner::x_DoBackTrace(), CMMAligner::x_DoSubmatrix(), CSeq_annot_Info::x_DoUpdate(), CBlastSeqVectorFromCSeq_data::x_Encoding_CSeq_data2CSeqUtil(), CMemoryFileMap::x_Extend(), CAlnMix::x_ExtendDSWithWidths(), CMMAligner::x_ExtendSubpath(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), CThreadPoolEngine::x_Find(), CSchedulerEngine::x_Find(), CAlnMap::x_FindClosestSeqPos(), CSeqMap::x_FindSegment(), CNCMessageHandler::x_FinishReadingBlob(), CDBAPI_CacheIWriter::x_Flush(), CSeq_loc_Mapper_Base::x_ForceSeqTypes(), CReferenceItem::x_GatherInfo(), CGeneFileWriter::x_Gene2Accn_ParseLine(), CGeneFileWriter::x_Gene2Accn_ProcessFile(), CGeneFileWriter::x_Gene2PM_ParseLine(), CGeneFileWriter::x_Gene2PM_ProcessFile(), CGeneInfoFileReader::x_GeneIdToGi(), CGeneFileWriter::x_GeneInfo_ParseLine(), CGeneFileWriter::x_GeneInfo_ProcessFile(), CSeq_id_GB_Tree::x_Get(), CSeqDBVol::x_GetAmbChar(), CSeq_feat_Handle::x_GetAnnotObject_Info(), CSeq_feat_Handle::x_GetAnnotObject_InfoAny(), CBlastServices::x_GetAvailableDatabases(), CPdfFontHandler::x_GetBaseFont(), CTSE_Info::x_GetBioseq(), ITSE_Assigner::x_GetBioseq(), CTSE_Info::x_GetBioseq_set(), ITSE_Assigner::x_GetBioseq_set(), CSeqMap::x_GetBioseqHandle(), CNetScheduleControl::x_GetConnectionArgs(), CGuideTree::x_GetFeatureId(), CImageIO::x_GetHandler(), CFeatTree::x_GetInfo(), CThemeConfigPanelBase::x_GetItemData(), CAsn2FlatApp::x_GetLocation(), CAsn2FastaApp::x_GetLocation(), CMemoryFileMap::x_GetMemoryFileSegment(), CGuideTree::x_GetNode(), CSeqMap::x_GetObject(), CSeqVector::x_GetPacked2naSeqData(), CBlobStorage_NetCache::x_GetReader(), CSeqMap::x_GetRefSeqid(), CRemoteBlast::x_GetRequestInfoFromFile(), CRemoteBlast::x_GetRequestInfoFromRID(), CSchedulerEngine::x_GetScheduledJob(), CSeqMap::x_GetSegmentException(), CSeq_align_Handle::x_GetSeq_align(), CSeqMap::x_GetSeq_data(), CSeq_graph_Handle::x_GetSeq_graph(), CBlastHitMatrixCGIApplication::x_GetSeqAnnot(), CAlnMap::x_GetSeqLeftSeg(), x_GetSeqLocFromStream(), CAlnMap::x_GetSeqRightSeg(), CSeqDBVol::x_GetSequence(), CSeq_feat_Handle::x_GetSNP_Info(), CSeq_feat_Handle::x_GetSNP_InfoAny(), CConfig::x_GetString(), CAnnot_Collector::x_GetTSE_Info(), CGeneInfoFileReader::x_GiToGeneId(), CGeneInfoFileReader::x_GiToOffset(), CPssmEngine::x_GuardProteinQuery(), CAlnMixSequences::x_IdentifyAlnMixSeq(), CVariant::x_Inapplicable_Method(), CSeq_id::x_Init(), CSeq_align_Mapper_Base::x_Init(), CFileLock::x_Init(), CStringOrBlobStorageReader::x_Init(), CRemoteBlast::x_Init(), CSafeStaticRef< T >::x_Init(), CSafeStaticPtr< T >::x_Init(), CId2Reader::x_InitConnection(), CElementaryMatching::x_InitFilteringVector(), CSeq_annot_CI::x_Initialize(), CBioseq_CI::x_Initialize(), CAnnot_Collector::x_Initialize(), CSeq_loc_Mapper_Base::x_InitializeLocs(), CPssmEngine::x_InitializeQueryInfo(), CPssmEngine::x_InitializeScoreBlock(), CSeqIdAlignBitmap< TSeqAlignSeqIdVec >::x_InitNucProtBitmaps(), CMultiAlignerOptions::x_InitParams(), CRemoteBlast::x_InitQueries(), CPsiBl2Seq::x_InitSubject(), CCache< TKey, TValue, THandler, TLock, TSize >::x_InsertElement(), CBlastPrelimSearch::x_LaunchMultiThreadedSearch(), CMultiAligner::x_LoadBlockBoundaries(), x_LoadConstraints(), CFileLoader::x_LoadFile(), CGBProjectTool::x_LoadGeneralData(), x_LoadPatterns(), CSplign::x_LoadSequence(), CHTMLPage::x_LoadTemplate(), CDataSource::x_LockTSE(), CSplignApp::x_LogCompartmentStatus(), CSeqDBIsam::x_MakeFilenames(), x_MakeRemove(), x_MakeReplace(), CDataSource::x_Map(), CGeneInfoFileReader::x_MapMemFiles(), CAlnMixMerger::x_Merge(), CGuiRegistry::x_MergeSite(), CId2Reader::x_NewConnection(), CId1Reader::x_NewConnection(), CSeqVector_CI::x_NextCacheSeg(), CAppJobDispatcher::x_OnJobStateChanged(), CAppTaskService::x_OnTaskCanceled(), CAppTaskService::x_OnWakeUpSignal(), CSeqDBGiMask::x_Open(), CArg_OutputFile::x_Open(), CArg_InputFile::x_Open(), CSeqDBVol::x_OpenAllColumns(), CProcessor_ID2::x_OpenDataStream(), CCache< TKey, TValue, THandler, TLock, TSize >::x_PackElementIndex(), CMaskingFmtSpecHelper::x_ParseFilteringAlgorithmSpec(), CBlastTabular::x_PartialDeserialize(), CArgDescriptions::x_PostCheck(), CArgDescriptions::x_PreCheck(), CAlnMultiCGIApplication::x_PreProcess(), CSeqVector_CI::x_PrevCacheSeg(), CHTMLPage::x_PrintTemplate(), CBlastOptionsBuilder::x_ProcessOneOption(), CRADispatcherClient::x_ProcessResponse(), CSeqMap_CI::x_Push(), CSeq_loc_Mapper_Base::x_PushMappedRange(), CSeq_annot_SNP_Info_Reader::x_Read(), CSeqDBAliasSets::x_ReadAliasSetFile(), CBufferedLineReader::x_ReadBuffer(), CWigBufferedLineReader::x_ReadBuffer(), CProcessor_ID2::x_ReadData(), CSeqDBGiMask::x_ReadFields(), CSeqDBColumn::x_ReadFields(), CSeqDBColumn::x_ReadMetaData(), CBlastDbBlob::x_ReadRaw(), CRADispatcherClient::x_ReadResponseId(), CTransmissionReader::x_ReadStart(), CNCBlobStorage::x_ReadStorageParams(), CBlastDbBlob::x_ReadString(), CSeq_feat_EditHandle::x_RealRemove(), CSeq_feat_EditHandle::x_RealReplace(), CId2Reader::x_ReceiveReply(), CObjectManager::x_RegisterLoader(), CRemotePssmSearch::x_RemoteBlast(), CRemoteSeqSearch::x_RemoteBlast(), CSeqMap::x_ResolveSegmentLength(), CSeqMap::x_ResolveSegmentPosition(), CSeqDBImpl::x_RetSeqBuffer(), CMultiAligner::x_Run(), CSplign::x_Run(), CSplign::x_RunOnCompartment(), CAppNWA::x_RunOnPair(), CElementaryMatching::x_Search(), CSeqDBIsam::x_SearchIndexNumericMulti(), CAnnot_Collector::x_SearchLoc(), CSeqDBIsam::x_SearchNegativeMulti(), CAnnot_Collector::x_SearchSegments(), CTSE_Info::x_SetBioseq_setId(), CTSE_Info::x_SetBioseqIds(), CSeqMap::x_SetChunk(), CMedia::x_SetDimensions(), CSeqDBExtFile::x_SetFileType(), CThemeConfigPanelBase::x_SetItemData(), CSeqMap::x_SetObject(), CThreadPool_Task::x_SetOwner(), CSplign::x_SetPattern(), CMultiAligner::x_SetScoreMatrix(), CSeqMap::x_SetSegmentGap(), CSeqMap::x_SetSeq_data(), CSeqMap::x_SetSubSeqMap(), CTime::x_SetTime(), CSplignApp::x_SetupBlastOptions(), x_SingleRange(), CSeqMap::x_StartEditing(), CAppJobDispatcher::x_StartJob(), CNlmZipReader::x_StartPlain(), CMergeVolumes::x_StoreMerger(), CFormatGuess::x_TestInput(), CSequenceDataTester::x_TestSingleSequence_Local(), CSQLITE3_Statement::x_Throw(), CDll::x_ThrowException(), CPsiBlastIterationState::x_ThrowExceptionOnLogicError(), CSeq_loc_CI::x_ThrowNotValid(), CTableFieldHandle_Base::x_ThrowUnsetValue(), CSeqTableColumnInfo::x_ThrowUnsetValue(), CBlastOptions::x_Throwx(), CBlastOptionsRemote::x_Throwx(), CFilteringArgs::x_TokenizeFilteringArgs(), CQueue::x_UpdateDB_PutResultNoLock(), CSeq_loc::x_UpdateId(), CPsiBlastImpl::x_Validate(), CWorkspaceConstPrx::x_ValidateCall(), CProjectConstPrx::x_ValidateCall(), CMaskingFmtSpecHelper::x_ValidateFilteringAlgorithm(), CBlastInputReader::x_ValidateMoleculeType(), CMultiAligner::x_ValidateQueries(), CMultiAligner::x_ValidateUserHits(), CMemoryFile::x_Verify(), CMemoryFileSegment::x_Verify(), CVariant::x_Verify_AssignType(), CBlastQueryFilteredFrames::x_VerifyFrame(), CSeqGraphicConfig::x_VerifySettings(), CProjectFileWriter::x_WriteFile(), CWriteDB_IsamIndex::x_WriteHeader(), and CTime::YearWeekNumber().

#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).

Definition at line 1271 of file ncbiexpt.hpp.

Referenced by CCompoundRWRegistry::Add(), CCompoundRegistry::Add(), CCgiCookies::Add(), CFastaReader::AssembleSeq(), CCgiCookie::CCgiCookie(), CExprValue::CExprValue(), CStringUTF8::CharToSymbol(), CheckStreamState(), CStringUTF8::Decode(), CExtraDecoder::Decode(), CGlBitmapFont::FromString(), CDate_std::GetDate(), CGBDataLoader::GetNamedAnnotAccessions(), CLDS_DataLoader::GetRecords(), CAlnReader::GetSeqAlign(), CAlnReader::GetSeqEntry(), CStringUTF8::GetSymbolCount(), SCigarAlignment::GuessFormat(), CHTMLHelper::HTMLDecode(), NStr::ParseEscapes(), ParseVersionString(), CPhrapReader::Read(), CAlnReader::Read(), CPhrap_Read::ReadDS(), CMultiReader::ReadObject(), CPhrap_Contig::ReadReadLocation(), CPhrap_Sequence::ReadTag(), CPhrap_Contig::ReadTag(), CPhrap_Read::ReadTag(), CCompoundRWRegistry::Remove(), CCompoundRegistry::Remove(), CEnvironmentRegistry::RemoveMapper(), NStr::Replace(), CExprParser::ReportError(), s_ConvertVersionInfo(), s_EndOfTag(), s_FindAttribute(), s_GuessMol(), s_ParseFastaDefline(), s_ReadFasta_OLD(), CCgiArgs_Parser::SetQueryString(), CUrl::SetUrl(), NStr::StringToBool(), CStringUTF8::SymbolToChar(), CPIDGuard::UpdatePID(), CCgiCookie::Write(), CPhrapReader::x_AddContig(), CPhrapReader::x_AddRead(), CStringUTF8::x_Append(), CCgiCookie::x_CheckField(), CPhrapReader::x_GetNewTag(), CPhrapReader::x_GetOldTag(), CGBDataLoader::x_GetRecords(), IRWRegistry::x_Read(), CPhrapReader::x_ReadContig(), CCgiEntryReaderContext::x_ReadMultipartHeaders(), CFastaReader::x_ReadSegSet(), CPhrapReader::x_ReadTag(), CPhrapReader::x_ReadWA(), CCgiArgs_Parser::x_SetIndexString(), and CStringUTF8::x_Validate().

#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 547 of file ncbiexpt.hpp.

Referenced by CSeqTableSetAnyObjField::CSeqTableSetAnyObjField(), SNetScheduleSubmitterImpl::ExecReadCommand(), CSeqTableInfo::GetColumn(), CSeqVector::GetPackedSeqData(), CReadDispatcher::GetProcessor(), CSeqVector_CI::GetSeqData(), CGBRequestStatistics::GetStatistics(), CSeqTableLocColumns::ParseDefaults(), CProcessor_ExtAnnot::Process(), CProcessor_ID2::ProcessData(), CProcessor_St_SE::ProcessObjStream(), CProcessor_SE_SNP::ProcessObjStream(), CProcessor_SE::ProcessObjStream(), CProcessor_ID1_SNP::ProcessObjStream(), CProcessor_ID1::ProcessObjStream(), CProcessor_St_SE_SNPT::ProcessStream(), CSeqTableSetFeatField::SetBytes(), CSeqTableLocColumns::SetColumn(), CSeqTableSetLocField::SetInt(), CSeqTableSetFeatField::SetInt(), CSeqTableSetLocField::SetReal(), CSeqTableSetFeatField::SetReal(), CSeqTableSetLocField::SetString(), CSeqTableSetFeatField::SetString(), CSeqVectorTypes::sx_GetGapChar(), ThrowOutOfRangeSeq_inst(), x_AppendAnyTo2(), x_AppendAnyTo4(), x_AppendAnyTo8(), CSeqVector::x_GetPacked2naSeqData(), CSeqVector::x_GetPacked4naSeqData(), CSeqVector::x_GetPacked8SeqData(), CTSE_Info::x_SetBioseqId(), and CSeqVector_CI::x_ThrowOutOfRange().

#define RETHROW_TRACE
 

Value:

do { \
    _TRACE("EXCEPTION: re-throw"); \
    NCBI_NS_NCBI::DoThrowTraceAbort(); \
    throw; \
} while(0)
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 186 of file ncbiexpt.hpp.

#define STD_CATCH message   ) 
 

Value:

catch (NCBI_NS_STD::exception& e) {                       \
        NCBI_NS_NCBI::CNcbiDiag()                             \
            << NCBI_NS_NCBI::Error                            \
            << "[" << message << "] Exception: " << e.what(); \
    }
Standard handling of "exception"-derived exceptions.

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

Definition at line 399 of file ncbiexpt.hpp.

#define STD_CATCH_ALL message   ) 
 

Value:

STD_CATCH(message)                                        \
    catch (...) {                                             \
        NCBI_NS_NCBI::CNcbiDiag()                             \
           << NCBI_NS_NCBI::Error                             \
           << "[" << message << "] Unknown exception";        \
    }
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 409 of file ncbiexpt.hpp.

Referenced by CConversionApp::Run().

#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 447 of file ncbiexpt.hpp.

Referenced by CPushback_Streambuf::CPushback_Streambuf(), CThreadPool_ThreadImpl::OnExit(), CSocketRequest::Process(), CServerConnectionRequest::Process(), s_LoadGuide(), CGFF3_Formatter::x_FormatAlignment(), and CSQLITE_Statement::~CSQLITE_Statement().

#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)    \
           << NCBI_NS_NCBI::Error                                    \
           << "[" << message << "] Unknown exception";               \
    }
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 480 of file ncbiexpt.hpp.

Referenced by CThreadInPool< TRequest >::OnExit().

#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 439 of file ncbiexpt.hpp.

#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)   \
            << NCBI_NS_NCBI::Error                                   \
            << "[" << 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 466 of file ncbiexpt.hpp.

#define THROW0_TRACE exception_object   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrint(DIAG_COMPILE_INFO, \
        exception_object, #exception_object)
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.

Example:

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

Definition at line 202 of file ncbiexpt.hpp.

Referenced by CPrintOptions::GetFormatFromName(), and CId1FetchApp::LookUpFlatSeqID().

#define THROW0np_TRACE exception_object   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrintNP(DIAG_COMPILE_INFO, \
        exception_object, #exception_object)
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.

Similar to THROW0p_TRACE except that program is not "aborted" when exception is thrown, and argument type can be an aggregate type such as Vector<T> where T is a printable argument.

Example:

Definition at line 241 of file ncbiexpt.hpp.

#define THROW0p_TRACE exception_object   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrintP(DIAG_COMPILE_INFO, \
        exception_object, #exception_object)
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 221 of file ncbiexpt.hpp.

#define THROW1_TRACE exception_class,
exception_arg   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrint(DIAG_COMPILE_INFO, \
        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 as a new class object is constructed using the specified class name and initialization argument.

Example:

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

Definition at line 257 of file ncbiexpt.hpp.

Referenced by CCgiIbuffer::CCgiIbuffer(), CCgiObuffer::CCgiObuffer(), GetHexChar(), CCgiContext::GetRequestValue(), CCgiResponse::out(), CCgiObuffer::overflow(), ReadBlock(), ReadId(), ReadNumber(), ReadOctetString(), ReadString(), s_GetFormat(), CCgiResponse::SetStatus(), CCgiIbuffer::underflow(), and CPackString::x_RefCounterError().

#define THROW1np_TRACE exception_class,
exception_arg   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrintNP(DIAG_COMPILE_INFO,    \
        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 a the specified initialization argument. The class argument need not be derived from std::exception as a new class object is constructed using the specified class name and initialization argument.

Similar to THROW1p_TRACE except that program is not "aborted" when exception is thrown, and argument type can be an aggregate type such as Vector<T> where T is a printable argument.

Example:

  • THROW1np_TRACE(CUserClass, "argument");

Definition at line 297 of file ncbiexpt.hpp.

#define THROW1p_TRACE exception_class,
exception_arg   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrintP(DIAG_COMPILE_INFO,    \
        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 a the specified initialization argument. The class argument need not be derived from std::exception as a new class object is constructed using the specified class name and initialization argument.

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

Example:

Definition at line 277 of file ncbiexpt.hpp.

#define THROW_TRACE exception_class,
exception_args   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrint(DIAG_COMPILE_INFO,    \
        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 a the specified initialization arguments. The class argument need not be derived from std::exception as a new class object is constructed using the specified class name and initialization arguments.

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

Example:

  • THROW_TRACE(bad_alloc, ());
  • THROW_TRACE(runtime_error, ("Something is weird..."));
  • THROW_TRACE(CParseException, ("Some parse error", 123));
    See also:
    THROW1_TRACE

Definition at line 320 of file ncbiexpt.hpp.

#define THROWnp_TRACE exception_class,
exception_args   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrintNP(DIAG_COMPILE_INFO,    \
        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 a the specified initialization argument. The class argument need not be derived from std::exception as a new class object is constructed using the specified class name and initialization argument.

Argument type can be an aggregate type such as Vector<T> where T is a printable argument.

Similar to THROWp_TRACE except that program is not "aborted" when exception is thrown.

Example:

  • THROWnp_TRACE(CUserClass, (arg1, arg2));

Definition at line 365 of file ncbiexpt.hpp.

#define THROWp_TRACE exception_class,
exception_args   ) 
 

Value:

throw NCBI_NS_NCBI::DbgPrintP(DIAG_COMPILE_INFO,    \
        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 a the specified initialization arguments. The class argument need not be derived from std::exception as a new class object is constructed using the specified class name and initialization arguments.

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 343 of file ncbiexpt.hpp.

#define THROWS  ) 
 

Definition at line 74 of file ncbiexpt.hpp.

#define THROWS_NONE
 

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 73 of file ncbiexpt.hpp.


Typedef Documentation

typedef int(* TErrorCode)(void)
 

Define function type for "error code" function.

Definition at line 1091 of file ncbiexpt.hpp.

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

Define function type for "error str" function.

Definition at line 1094 of file ncbiexpt.hpp.


Function Documentation

const string& DbgPrint const CDiagCompileInfo info,
const string &  e,
const char * 
[inline]
 

Print debug message for "std::string" object.

Definition at line 139 of file ncbiexpt.hpp.

References DoDbgPrint().

char* DbgPrint const CDiagCompileInfo info,
char *  e,
const char * 
[inline]
 

Print debug message for "char*" object.

Definition at line 130 of file ncbiexpt.hpp.

References DoDbgPrint().

const char* DbgPrint const CDiagCompileInfo info,
const char *  e,
const char * 
[inline]
 

Print debug message for "const char*" object.

Definition at line 121 of file ncbiexpt.hpp.

References DoDbgPrint().

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.

Definition at line 112 of file ncbiexpt.hpp.

References DoDbgPrint().

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

Create diagnostic stream for printing specified message.

Similar to DbgPrintP except that "abort()" not executed.

See also:
DbgPrintP()

Definition at line 167 of file ncbiexpt.hpp.

References DoDbgPrint().

template<typename T>
const T& DbgPrintP 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:
SetThrowTraceAbort(), DoThrowTraceAbort()

Definition at line 153 of file ncbiexpt.hpp.

References DoThrowTraceAbort(), and eDiag_Trace.

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

Print the specified debug messages.

Definition at line 94 of file ncbiexpt.cpp.

References DoThrowTraceAbort(), and eDiag_Trace.

void DoDbgPrint const CDiagCompileInfo info,
const string &  message
 

Print the specified debug message.

Definition at line 88 of file ncbiexpt.cpp.

void DoDbgPrint const CDiagCompileInfo info,
const char *  message
 

Print the specified debug message.

Definition at line 82 of file ncbiexpt.cpp.

Referenced by DbgPrint(), and DbgPrintNP().

void DoThrowTraceAbort void   ) 
 

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

Definition at line 69 of file ncbiexpt.cpp.

References ABORT_ON_THROW, s_DoThrowTraceAbort, and s_DTTA_Initialized.

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

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 63 of file ncbiexpt.cpp.

References s_DoThrowTraceAbort, and s_DTTA_Initialized.

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 818 of file ncbiexpt.hpp.


Generated on Wed Dec 9 08:13:33 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:20:18 2009 by modify_doxy.py rev. 173732