#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.
| Exception::Exception | ( | const std::string & | msg_r | ) | throw () [explicit] |
Ctor: stores message
| virtual Exception::~Exception | ( | ) | throw () [virtual] |
| virtual const char* Exception::what | ( | ) | const throw () [virtual] |
| const location_type& Exception::where | ( | ) | const throw () |
| void Exception::setLocation | ( | const location_type & | loc_r | ) | const throw () [inline] |
Set source code location.
| virtual std::ostream& Exception::dumpOn | ( | std::ostream & | str | ) | const [virtual] |
Stream output, used by the default std::ostream::operator<<.
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const Exception & | obj_r | |||
| ) | [friend] |
Stream output as ""EXCEPTION: 'what()' AT 'where()'"
std::string Exception::_msg [private] |
location_type Exception::_loc [mutable, private] |
1.5.3