![]() |
Peano
|
Another nice thing: The TwoPunctures Error, borrowed from Pizza. More...
#include <TP_Logging.h>
Public Member Functions | |
error (const char *msg_) | |
virtual const char * | what () const throw () |
Static Public Member Functions | |
static void | unless (bool c, const char *m) |
static void | incase (bool c, const char *m) |
Private Attributes | |
const char * | msg |
Another nice thing: The TwoPunctures Error, borrowed from Pizza.
Use like: error::unless(something_to_check, "msg"); if(something) throw error("foo"); etc.
Definition at line 65 of file TP_Logging.h.
TP::error::error | ( | const char * | msg_ | ) |
Definition at line 69 of file TP_Logging.h.
Referenced by unless().
|
static |
Definition at line 78 of file TP_Logging.h.
References acoustic::c, and unless().
|
static |
Definition at line 74 of file TP_Logging.h.
References acoustic::c, and error().
Referenced by incase().
|
virtual |
Definition at line 70 of file TP_Logging.h.
References msg.
|
private |
Definition at line 67 of file TP_Logging.h.
Referenced by what().