AMOS::AllocException_t Class Reference

An exception for alloc failures, better than std::bad_alloc. More...

#include <exceptions_AMOS.hh>

Inheritance diagram for AMOS::AllocException_t:

[legend]
Collaboration diagram for AMOS::AllocException_t:
[legend]
List of all members.

Public Member Functions

 AllocException_t (const std::string &what, int line=0, const std::string &file=NULL_STRING)
 Informative constructor.
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

An exception for alloc failures, better than std::bad_alloc.

Can be thrown in place of std::bad_alloc when a modified description, line number or file name would be helpful for debugging.

Definition at line 161 of file exceptions_AMOS.hh.


Constructor & Destructor Documentation

AMOS::AllocException_t::AllocException_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 173 of file exceptions_AMOS.hh.


Member Function Documentation

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

Returns the file (if available) of the exception.

Definition at line 67 of file exceptions_AMOS.hh.

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

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, inherited]

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 Mon Feb 22 17:36:36 2010 for libAMOS by  doxygen 1.4.7