|
xorp
|
A base class for XORP exceptions. More...
#include <exceptions.hh>
Public Member Functions | |
| XorpException (const char *init_what, const char *file, size_t line) | |
| Constructor for a given type for exception, file name, and file line number. | |
| virtual | ~XorpException () |
| Destructor. | |
| const string & | what () const |
| Get the type of this exception. | |
| const string | where () const |
| Get the location for throwing an exception. | |
| virtual const string | why () const |
| Get the reason for throwing an exception. | |
| string | str () const |
| Convert this exception from binary form to presentation format. | |
Protected Attributes | |
| string | _what |
| const char * | _file |
| size_t | _line |
A base class for XORP exceptions.
| XorpException::XorpException | ( | const char * | init_what, |
| const char * | file, | ||
| size_t | line | ||
| ) |
| string XorpException::str | ( | ) | const |
| const string& XorpException::what | ( | ) | const [inline] |
| const string XorpException::where | ( | ) | const |
| const string XorpException::why | ( | ) | const [virtual] |
Get the reason for throwing an exception.
Reimplemented in XrlArgs::BadArgs, XrlAtom::NoData, XrlAtom::WrongType, XrlAtom::BadName, XorpReasonedException, InvalidFamily, and InvalidNetmaskLength.