class XorpReasonedException

A base class for XORP exceptions that keeps the reason for exception. More...

Definition#include <exceptions.hh>
InheritsXorpException [public ]
Inherited byBadMac, InvalidAddress, InvalidBufferOffset, InvalidCast, InvalidPacket, InvalidPort, InvalidString
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

 XorpReasonedException (const char* init_what, const char* file, size_t line, const string& init_why)

XorpReasonedException

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

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

const string  why ()

why

[const]

Get the reason for throwing an exception.

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

Reimplemented from XorpException.

string _why

_why

[protected]


Generated by: pavlin on possum.icir.org on Thu Nov 6 23:46:46 2003, using kdoc 2.0a54+XORP.