Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Exception Class Reference

A common exception class used by all classes in the annie library. More...

#include <Exception.h>

Inheritance diagram for Exception:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Exception (const char *info)
 Exception (std::string info)
std::string what () const
 Returns a string consisting of the details specified when the Exception was created.


Protected Member Functions

void * operator new (uint size)

Protected Attributes

std::string details

Detailed Description

A common exception class used by all classes in the annie library.

You should place calls to functions that can throw exceptions in a try {} block, and catch(Exception &e). Use cout<<e.what() to print out the details onto the screen.

In version 1.0 of annie, this is the only class thrown by any function. Further refinements will be made as and when required.


Constructor & Destructor Documentation

Exception const char *  info  ) 
 

Parameters:
info A string specifying details of the error.

Exception std::string  info  ) 
 

Parameters:
info A string specifying details of the error.


Member Function Documentation

void* operator new uint  size  )  [protected]
 

std::string what  )  const [inline]
 

Returns a string consisting of the details specified when the Exception was created.


Member Data Documentation

std::string details [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 13:18:55 2004 for Annie by doxygen 1.3.5