35 prefix_ void senf::ExceptionMixin::addBacktrace()
37 void * entries[SENF_DEBUG_BACKTRACE_NUMCALLERS];
38 int nEntries (::
backtrace(entries, SENF_DEBUG_BACKTRACE_NUMCALLERS));
41 ss <<
"\nException at\n";
44 excLen_ = ss.str().size();
67 prefix_ void senf::SystemException::init(std::string
const & descr,
int code
73 (*this) <<
"Exception at " << file <<
":" << line <<
"\n";
75 (*this) <<
"[" << errorString() <<
"]";
76 if (! descr.empty()) (*
this) <<
" " << descr;
std::string backtrace() const
Return backtrace (if available)
virtual char const * what() const
get exception description and backtrace if available
#define _SENF_EXC_DEBUG_ARGS_ND
void formatBacktrace(std::ostream &os, void **backtrace, int numEntries)
Format a given backtrace.