NCBI C++ ToolKit
|
Search Toolkit Book for CExceptionReporter
#include <corelib/ncbiexpt.hpp>
Public Member Functions | |
CExceptionReporter (void) | |
Constructor. More... | |
virtual | ~CExceptionReporter (void) |
Destructor. More... | |
virtual void | Report (const char *file, int line, const string &title, const CException &ex, TDiagPostFlags flags=eDPF_Exception) const =0 |
Report CException with _this_ reporter. More... | |
Static Public Member Functions | |
static void | SetDefault (const CExceptionReporter *handler) |
Set default reporter. More... | |
static const CExceptionReporter * | GetDefault (void) |
Get default reporter. More... | |
static bool | EnableDefault (bool enable) |
Enable/disable using default reporter. More... | |
static void | ReportDefault (const CDiagCompileInfo &info, const string &title, const std::exception &ex, TDiagPostFlags flags=eDPF_Exception) |
Report exception using default reporter. More... | |
static void | 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... | |
Static Private Attributes | |
static const CExceptionReporter * | sm_DefHandler = 0 |
Default handler. More... | |
static bool | sm_DefEnabled = true |
Default enable flag. More... | |