#include <Exception.h>
Public Types | |
typedef SourceCodeLocation | location_type |
Public Member Functions | |
Exception (const std::string &msg_r) throw () | |
virtual | ~Exception () throw () |
virtual const char * | what () const throw () |
const location_type & | where () const throw () |
void | setLocation (const location_type &loc_r) const throw () |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Private Attributes | |
std::string | _msg |
location_type | _loc |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Exception &obj_r) |
Fore convenience use macro THROW( Exception("message") );
. It automatically stores SOURCECODELOCATION. See class SourceCodeLocation.
|
|
|
Ctor: stores message |
|
|
|
Stream output, used by the default std::ostream::operator<<. |
|
Set source code location. |
|
|
|
|
|
Stream output as ""EXCEPTION: 'what()' AT 'where()'" |
|
|
|
|