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

Additional Inherited Members

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

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 
)
noexcept

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 ( )
virtualnoexcept

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