Public Member Functions | List of all members
ExceptionTracer Class Reference

Exception backtrace. More...

#include <error.hpp>

Inheritance diagram for ExceptionTracer:
Error ErrorDim ErrorErrno ErrorNoMem ErrorRange ErrorUnimplemented

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. More...
 
void print_trace (std::ostream &os)
 Print the backtrace to os. More...
 

Detailed Description

Exception backtrace.

Saves the backtrace when constructed. Uses GNU extensions and therefore only works when compiled with GNU system.

Constructor & Destructor Documentation

ExceptionTracer::ExceptionTracer ( )

Default constructor for exception tracer. Saves the backtrace of the program at this location for printing it when the error is caught.

Member Function Documentation

void ExceptionTracer::print_trace ( std::ostream &  os)

Print the backtrace to os.


The documentation for this class was generated from the following file: