AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ Print()

virtual void drama::Exception::Print ( FILE file = stderr,
bool  include_stacktrace = false 
) const
virtual

Print exception details to a file.

Parameters
fileThe file to print the exception details to.
Defaults to stderr.
include_stacktraceIf set true, then the stacktrace is also output (if available). This output is also generated if the DRAMA2_EXCEPT_PRINT_DUMP environment variable is set or if the alwaysStacktrace argument to the constructor is set true.
Examples
argtest.cpp, monitor1.cpp, monitor2.cpp, threadbasic.cpp, and tocker.cpp.