Exception Class Reference
[Exceptions]

The base class for the exceptions. More...

#include <exception.h>

Inherits std::exception.

Inherited by AlgorithmFactoryException, AlgorithmNotFoundException, DatasetNotFoundException, FormatNotSupportedException, IndexOutOfBoundsException, InvalidCastException, MetadataNotFoundException, and NullPointerException.

Inheritance diagram for Exception:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Exception (exception_type type, std::string detail="")
 Exception (Exception const &src)
virtual ~Exception () throw ()
virtual char const * what () const throw ()
exception_type getType () const
std::string const & getDetail () const

Protected Attributes

exception_type type_
std::string detail_

Detailed Description

The base class for the exceptions.

Class all exception classes have to inherit

Author:
Tobias Gross (tobias.gross@imedgine.org)

Christian Koerner (christian.koerner@imedgine.org)

Alexander Lex (alexander.lex@imedgine.org)

Marc Streit (marc.streit@imedgine.org)

Martin Reininger (martin.reininger@imedgine.org)

Definition at line 42 of file exception.h.


Constructor & Destructor Documentation

Exception exception_type  type,
std::string  detail = ""
 

Constructor

Parameters:
type The type of the exception
detail Details concerning the exceptions

Definition at line 18 of file exception.cpp.

Exception Exception const &  src  ) 
 

Copy Constructor

Definition at line 26 of file exception.cpp.

~Exception  )  throw () [virtual]
 

Destructor

Definition at line 34 of file exception.cpp.


Member Function Documentation

std::string const & getDetail  )  const
 

Getter for the details of the exception

Returns:
The string with the details

Reimplemented in AlgorithmFactoryException.

Definition at line 54 of file exception.cpp.

References Exception::detail_.

exception_type getType  )  const
 

Getter for the type of the exception

Returns:
the type of the exception

Reimplemented in AlgorithmFactoryException.

Definition at line 47 of file exception.cpp.

References Exception::type_.

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

Returns info on what caused the exception

Returns:
A char pointer pointing to the text

Reimplemented in AlgorithmFactoryException, AlgorithmNotFoundException, DatasetNotFoundException, FormatNotSupportedException, IndexOutOfBoundsException, InvalidCastException, MetadataNotFoundException, and NullPointerException.

Definition at line 40 of file exception.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Aug 13 18:20:04 2006 for iMEDgine by  doxygen 1.4.6