Exception Class Reference

Base Exception class where all exceptions are derived from. More...

#include <Exceptions.h>

Inheritance diagram for Exception:

IOException IrcException NickAlreadyInUseException List of all members.

Public Member Functions

virtual const char * what () const throw ()
 Get the message or jist of what occurred when the exception was thrown.
virtual ~Exception ()
 Default Empty virtual destructor.

Detailed Description

Base Exception class where all exceptions are derived from.

This mimicks the Standard Library's exception class. The reason for it and not the standard library is because the Standard Library cannot be used in any of pircbot's public interfaces.

This constraint gives the users of pircbot the choice of their own Standard Library and not become tied to a particular implementation of the Standard Library.

All Standard Library exceptions that occur inside of pircbot are caught and rewrapped inside of this Exception. Therefore, no Standard Library exceptions will be thrown outside of pircbot.


Constructor & Destructor Documentation

virtual ~Exception  )  [inline, virtual]
 

Default Empty virtual destructor.


Member Function Documentation

virtual const char* what  )  const throw () [inline, virtual]
 

Get the message or jist of what occurred when the exception was thrown.

By default, if a sub class does not override this method and throw a custom message, this will return "unknown exception" message.

Returns:
Will return the message or jist of what occured when the exception was thrown.
Exceptions:
Will not throw any


The documentation for this class was generated from the following file:
Generated on Sun Sep 3 16:43:09 2006 for pircbotcpp by  doxygen 1.4.5