Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

annie::Exception Class Reference

#include <Exception.h>

List of all members.

Public Methods

 Exception (const char *info)
 Creates an exception. More...

 Exception (std::string info)
 Creates an exception. More...

std::string what ()
 Returns a string consisting of the details specified when the Exception was created. More...


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

annie::Exception::Exception const char *    info
 

Creates an exception.

Parameters:
info  A string specifying details of the error.

annie::Exception::Exception std::string    info
 

Creates an exception.

Parameters:
info  A string specifying details of the error.


Member Function Documentation

std::string annie::Exception::what  
 

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


Member Data Documentation

std::string annie::Exception::details [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 23 10:42:36 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002