Log a warning with a cheap stack trace before an exception is thrown.
Synopsis
Declared in <bslstl_stdexceptutil.h>
static
void
logCheapStackTrace(
char const* exceptionName,
char const* message);
Description
Log "About to throw ", then the specified exceptionName, then the specified message, then log a cheap stack trace with warning severity. This function is intended as a candidate for setting to the pre‐throw hooks. Note that a far slower alternative to this, which logs a full, multi‐line stack trace with resolved symbols and, on many platforms, line numbers and source file names, is balst::StackTracePrintUtil::logExceptionStackTrace.
Parameters
Name |
Description |
exceptionName |
name of the exception about to be thrown |
message |
message associated with the exception |
Created with MrDocs