Exception backtrace. More...
#include <error.hpp>
Public Member Functions | |
ExceptionTracer () | |
Default constructor for exception tracer. Saves the backtrace of the program at this location for printing it when the error is caught. | |
void | print_trace (std::ostream &os) |
Print the backtrace to os. | |
Exception backtrace.
Saves the backtrace when constructed. Uses GNU extensions and therefore only works when compiled with GNU system.
ExceptionTracer::ExceptionTracer | ( | ) |
Default constructor for exception tracer. Saves the backtrace of the program at this location for printing it when the error is caught.
void ExceptionTracer::print_trace | ( | std::ostream & | os | ) |
Print the backtrace to os.