src/corelib/ncbiexpt.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbiexpt.hpp>
#include <corelib/ncbithr.hpp>
#include <corelib/ncbi_safe_static.hpp>
#include <corelib/ncbi_param.hpp>
#include <corelib/error_codes.hpp>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stack>

Include dependency graph for ncbiexpt.cpp:

Go to the source code of this file.

Classes

class  CExceptionWrapper

Defines

#define NCBI_USE_ERRCODE_X   Corelib_Diag

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.
 NCBI_PARAM_ENUM_ARRAY (EDiagSev, EXCEPTION, Stack_Trace_Level)
 NCBI_PARAM_ENUM_DECL (EDiagSev, EXCEPTION, Stack_Trace_Level)
 NCBI_PARAM_ENUM_DEF_EX (EDiagSev, EXCEPTION, Stack_Trace_Level, eDiag_Critical, eParam_NoThread, EXCEPTION_STACK_TRACE_LEVEL)
typedef NCBI_PARAM_TYPE (EXCEPTION, Stack_Trace_Level) TStackTraceLevelParam
 NCBI_PARAM_DECL (bool, EXCEPTION, Abort_If_Critical)
 NCBI_PARAM_DEF_EX (bool, EXCEPTION, Abort_If_Critical, false, eParam_NoThread, EXCEPTION_ABORT_IF_CRITICAL)
typedef NCBI_PARAM_TYPE (EXCEPTION, Abort_If_Critical) TAbortIfCritical

Variables

static bool s_DoThrowTraceAbort = false
static bool s_DTTA_Initialized = false
static TStackTraceLevelParam s_StackTraceLevel
static TAbortIfCritical s_AbortIfCritical


Define Documentation

#define NCBI_USE_ERRCODE_X   Corelib_Diag
 

Definition at line 51 of file ncbiexpt.cpp.


Function Documentation

NCBI_PARAM_DECL bool  ,
EXCEPTION  ,
Abort_If_Critical 
 

NCBI_PARAM_DEF_EX bool  ,
EXCEPTION  ,
Abort_If_Critical  ,
false  ,
eParam_NoThread  ,
EXCEPTION_ABORT_IF_CRITICAL 
 

NCBI_PARAM_ENUM_ARRAY EDiagSev  ,
EXCEPTION  ,
Stack_Trace_Level 
 

Definition at line 105 of file ncbiexpt.cpp.

References eDiag_Critical, eDiag_Error, eDiag_Fatal, eDiag_Info, eDiag_Trace, and eDiag_Warning.

NCBI_PARAM_ENUM_DECL EDiagSev  ,
EXCEPTION  ,
Stack_Trace_Level 
 

NCBI_PARAM_ENUM_DEF_EX EDiagSev  ,
EXCEPTION  ,
Stack_Trace_Level  ,
eDiag_Critical  ,
eParam_NoThread  ,
EXCEPTION_STACK_TRACE_LEVEL 
 

typedef NCBI_PARAM_TYPE EXCEPTION  ,
Abort_If_Critical 
 

typedef NCBI_PARAM_TYPE EXCEPTION  ,
Stack_Trace_Level 
 


Variable Documentation

TAbortIfCritical s_AbortIfCritical [static]
 

Definition at line 148 of file ncbiexpt.cpp.

Referenced by CException::SetSeverity().

bool s_DoThrowTraceAbort = false [static]
 

Definition at line 60 of file ncbiexpt.cpp.

Referenced by DoThrowTraceAbort(), and SetThrowTraceAbort().

bool s_DTTA_Initialized = false [static]
 

Definition at line 61 of file ncbiexpt.cpp.

Referenced by DoThrowTraceAbort(), and SetThrowTraceAbort().

TStackTraceLevelParam s_StackTraceLevel [static]
 

Definition at line 125 of file ncbiexpt.cpp.

Referenced by CException::GetStackTraceLevel().


Generated on Wed Dec 9 23:25:07 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 23:55:33 2009 by modify_doxy.py rev. 173732