#include <MboDebugTrace.h>
Public Types | ||||
typedef copy_arg_info < _str_type >::argument_t | str_arg | |||
typedef copy_arg_info < _str_type >::variable_t | str_var | |||
Public Member Functions | ||||
mbo_exception () | ||||
default constructor | ||||
mbo_exception (str_arg msg) | ||||
| ||||
Static Public Member Functions | ||||
static const char * | get_exception_name () | |||
|
This base class is used to extend STL exceptions by stacktrace logging.
Definition at line 142 of file MboDebugTrace.h.
typedef copy_arg_info<_str_type>::argument_t mbo::mbo_exception< base_exception, _str_type >::str_arg |
Definition at line 146 of file MboDebugTrace.h.
typedef copy_arg_info<_str_type>::variable_t mbo::mbo_exception< base_exception, _str_type >::str_var |
Definition at line 147 of file MboDebugTrace.h.
mbo::mbo_exception< base_exception, _str_type >::mbo_exception | ( | ) | [inline] |
default constructor
Definition at line 167 of file MboDebugTrace.h.
References mbo::mbo_stack_trace::get_stack_trace().
00168 : base_exception(str_arg(get_exception_name())) 00169 , mbo_stack_trace(4) 00170 { 00171 OutputDebugString(what()); 00172 OutputDebugString("\n"); 00173 OutputDebugString(get_stack_trace().c_str()); 00174 }
mbo::mbo_exception< base_exception, _str_type >::mbo_exception | ( | str_arg | msg | ) | [inline, explicit] |
msg | message for exception, typically the reason |
Definition at line 178 of file MboDebugTrace.h.
References mbo::mbo_stack_trace::get_stack_trace().
00179 : base_exception(str_arg((std::string(get_exception_name()) + ": " + msg).c_str())) 00180 , mbo_stack_trace(4) 00181 { 00182 OutputDebugString(what()); 00183 OutputDebugString("\n"); 00184 OutputDebugString(get_stack_trace().c_str()); 00185 }
static const char* mbo::mbo_exception< base_exception, _str_type >::get_exception_name | ( | ) | [inline, static] |
Definition at line 151 of file MboDebugTrace.h.
00152 { 00153 const char *szName = typeid(base_exception).name(); 00154 00155 if (!strncmp(szName, "class ", sizeof("class ")-1)) 00156 { 00157 return szName + sizeof("class ") - 1; 00158 } 00159 else 00160 { 00161 return szName; 00162 } 00163 }
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:11 2008 for MBO-lib by ![]() |