Vuo  2.1.2
Public Member Functions | List of all members
VuoException Class Reference

Description

An exception that keeps track of the stack when it was created.

Definition at line 15 of file VuoException.hh.

Public Member Functions

 VuoException (const string &description, bool log=true)
 Creates an exception with the specified description, collects the current stack trace, and optionally logs both. More...
 
 ~VuoException (void) throw ()
 Needed to prevent a build error. More...
 
const char * what () const throw ()
 Returns the description. More...
 
const vector< string > & getBacktrace ()
 Returns the stack trace when creating this exception. More...
 

Constructor & Destructor Documentation

◆ VuoException()

VuoException::VuoException ( const string &  description,
bool  log = true 
)

Creates an exception with the specified description, collects the current stack trace, and optionally logs both.

Definition at line 22 of file VuoException.cc.

◆ ~VuoException()

VuoException::~VuoException ( void  )
throw (
)

Needed to prevent a build error.

Destructor.

Definition at line 69 of file VuoException.cc.

Member Function Documentation

◆ getBacktrace()

const vector< string > & VuoException::getBacktrace ( )

Returns the stack trace when creating this exception.

Definition at line 84 of file VuoException.cc.

◆ what()

const char * VuoException::what ( ) const
throw (
)

Returns the description.

Definition at line 76 of file VuoException.cc.


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