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

AMOS::Exception_t Class Reference

The base AMOS excpetion class. More...

#include <exceptions_AMOS.hh>

Inheritance diagram for AMOS::Exception_t:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Exception_t (const std::string &what, int line=0, const std::string &file=NULL_STRING)
 Informative constructor.
 ~Exception_t () throw ()
 Default destructor.
virtual const char * file () const
 Returns the file (if available) of the exception.
virtual int line () const
 Returns the line number (if available) of the exception.
virtual const char * what () const throw ( )
 Returns a short description (if available) of the exception.

Detailed Description

The base AMOS excpetion class.

All other AMOS exceptions will be derived from this class, so catching for this class should effectively catch all AMOS exceptions.

Definition at line 30 of file exceptions_AMOS.hh.


Constructor & Destructor Documentation

AMOS::Exception_t::Exception_t const std::string &  what,
int  line = 0,
const std::string &  file = NULL_STRING
[inline]
 

Informative constructor.

Parameters:
what Brief description of the exception
line Line number of the exception
file File name of the exception
Definition at line 50 of file exceptions_AMOS.hh.

References file().

AMOS::Exception_t::~Exception_t  )  throw () [inline]
 

Default destructor.

Definition at line 60 of file exceptions_AMOS.hh.


Member Function Documentation

virtual const char* AMOS::Exception_t::file  )  const [inline, virtual]
 

Returns the file (if available) of the exception.

Definition at line 67 of file exceptions_AMOS.hh.

Referenced by Exception_t().

virtual int AMOS::Exception_t::line  )  const [inline, virtual]
 

Returns the line number (if available) of the exception.

Definition at line 76 of file exceptions_AMOS.hh.

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

Returns a short description (if available) of the exception.

Definition at line 85 of file exceptions_AMOS.hh.


The documentation for this class was generated from the following file:
Generated on Tue May 17 15:19:44 2005 for libAMOS by doxygen 1.3.8