genetiK::util::Exception Class Reference
[Utility classes]

Exception is the base class of all exceptions thrown by classes in the GenetiK library. More...

#include <Exception.h>

Inheritance diagram for genetiK::util::Exception:

Inheritance graph
[legend]
Collaboration diagram for genetiK::util::Exception:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Exception (const std::string &mess)
virtual ~Exception () throw ()
virtual const char * what () const throw ()
 Returns the cause of the exception.
virtual const std::string & getMessage () const throw ()
 Returns the cause of the exception as a std::string.

Detailed Description

Exception is the base class of all exceptions thrown by classes in the GenetiK library.


Constructor & Destructor Documentation

genetiK::util::Exception::Exception const std::string &  mess  )  [explicit]
 

Creates an Exception associating it the specified string as message.

Parameters:
mess a message describing the cause of the exception

genetiK::util::Exception::~Exception  )  throw () [virtual]
 

Deletes the Exception instance


Member Function Documentation

virtual const std::string& genetiK::util::Exception::getMessage  )  const throw () [inline, virtual]
 

Returns the cause of the exception as a std::string.

Returns:
the cause, as an std::string

virtual const char* genetiK::util::Exception::what  )  const throw () [inline, virtual]
 

Returns the cause of the exception.

The cause message is returned as a C-style character string, for compatibiliy with classes derived from std:exception classes.

Returns:
the cause, as character string


The documentation for this class was generated from the following files:
Generated on Thu Feb 23 12:22:40 2006 for GenetiK by  doxygen 1.4.6