Psi4
Public Member Functions | List of all members
psi::ResourceAllocationError< T > Class Template Reference

#include <exception.h>

Inheritance diagram for psi::ResourceAllocationError< T >:
psi::LimitExceeded< T > psi::PsiException

Public Member Functions

 ResourceAllocationError (std::string resource_name, T max, T actual, const char *file, int line) throw ()
 
virtual ~ResourceAllocationError () throw ()
 
- Public Member Functions inherited from psi::LimitExceeded< T >
 LimitExceeded (std::string resource_name, T maxval, T errorval, const char *f, int l) throw ()
 
max_value () const throw ()
 
actual_value () const throw ()
 
virtual ~LimitExceeded () throw ()
 
- Public Member Functions inherited from psi::PsiException
 PsiException (std::string message, const char *file, int line) throw ()
 
 PsiException (const PsiException &copy) throw ()
 
virtual ~PsiException () throw ()
 
PsiExceptionoperator= (const PsiException &other)
 
const char * what () const throw ()
 
const char * file () const throw ()
 
const char * location () const throw ()
 
int line () const throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from psi::LimitExceeded< T >
const char * description () const throw ()
 
- Protected Member Functions inherited from psi::PsiException
void rewrite_msg (std::string msg) throw ()
 

Detailed Description

template<class T = size_t>
class psi::ResourceAllocationError< T >

Convergence error for routines

Constructor & Destructor Documentation

template<class T >
psi::ResourceAllocationError< T >::ResourceAllocationError ( std::string  resource_name,
max,
actual,
const char *  file,
int  line 
)
throw (
)

Constructor

Parameters
resource_nameThe name of the resource (e.g memory)
maxThe max number of iterations
fileThe file that threw the exception (use FILE macro)
lineThe line number that threw the exception (use LINE macro)
template<class T >
psi::ResourceAllocationError< T >::~ResourceAllocationError ( )
throw (
)
virtual

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