class XorpException

A base class for XORP exceptions. More...

Definition#include <exceptions.hh>
Inherited byBadMac, InvalidAddress, InvalidBufferOffset, InvalidCast, InvalidFamily, InvalidNetmaskLength, InvalidPacket, InvalidPort, InvalidString, XorpReasonedException
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

 XorpException (const char* init_what, const char* file, size_t line)

XorpException

Constructor for a given type for exception, file name, and file line number.

Parameters:
init_whatthe type of exception.
filethe file name where the exception was thrown.
linethe line in file where the exception was thrown.

 ~XorpException ()

~XorpException

[virtual]

Destructor

const string  what ()

what

[const]

Get the type of this exception.

Returns: the string with the type of this exception.

const string  where ()

where

[const]

Get the location for throwing an exception.

Returns: the string with the location (file name and file line number) for throwing an exception.

const string  why ()

why

[const virtual]

Get the reason for throwing an exception.

Returns: the string with the reason for throwing an exception.

string  str ()

str

[const]

Convert this exception from binary form to presentation format.

Returns: C++ string with the human-readable ASCII representation of the exception.

string _what

_what

[protected]

const char* _file

_file

[protected]

size_t _line

_line

[protected]


Generated by: pavlin on possum.icir.org on Mon Jun 9 13:23:43 2003, using kdoc 2.0a54+XORP.