psi::LimitExceeded< T > Class Template Reference

#include <exception.h>

Inheritance diagram for psi::LimitExceeded< T >:

psi::PsiException

List of all members.

Public Member Functions

 LimitExceeded (std::string resource_name, T maxval, T errorval, const char *f, int l) throw ()
max_value () const throw ()
actual_value () const throw ()

Protected Member Functions

const char * description () const throw ()


Detailed Description

template<class T>
class psi::LimitExceeded< T >

A generic template class for exceptions in which a min or max value is exceed

Constructor & Destructor Documentation

template<class T>
psi::LimitExceeded< T >::LimitExceeded ( std::string  resource_name,
maxval,
errorval,
const char *  f,
int  l 
) throw () [inline]

Constructor

Parameters:
resource_name The name of the value that was exceeded (e.g. memory or scf max iterations)
maxval The max (or min) value allowed
errorval The actual value obtained
f The file that threw the exception (use __FILE__ macro)
l The line number that threw the exception (use __LINE__ macro)


Member Function Documentation

template<class T>
const char* psi::LimitExceeded< T >::description (  )  const throw () [inline, protected]

Accessor method

Returns:
A string description of the limit that was exceeded


The documentation for this class was generated from the following file:

Generated on Mon Dec 21 14:14:48 2009 for PSI by  doxygen 1.5.6