Psi4
Public Member Functions | Private Member Functions | List of all members
psi::InputException Class Reference

#include <exception.h>

Inheritance diagram for psi::InputException:
psi::PsiException

Public Member Functions

 InputException (std::string msg, std::string param_name, int value, const char *file, int line) throw ()
 
 InputException (std::string msg, std::string param_name, double value, const char *file, int line) throw ()
 
 InputException (std::string msg, std::string param_name, std::string value, const char *file, int line) throw ()
 
 InputException (std::string msg, std::string param_name, const char *file, int line) 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 ()
 

Private Member Functions

template<class T >
void write_input_msg (std::string msg, std::string param_name, T val) throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from psi::PsiException
void rewrite_msg (std::string msg) throw ()
 

Detailed Description

Exception on input values

Constructor & Destructor Documentation

psi::InputException::InputException ( std::string  msg,
std::string  param_name,
int  value,
const char *  file,
int  line 
)
throw (
)

Constructor

Parameters
msgA message descring why the input parameter is invalid
param_nameThe parameter in the input file that needs to be changed
valueThe value that proved to be incorrect
fileThe file that threw the exception (use FILE macro)
lineThe line number that threw the exception (use LINE macro)
psi::InputException::InputException ( std::string  msg,
std::string  param_name,
double  value,
const char *  file,
int  line 
)
throw (
)

Constructor

Parameters
msgA message descring why the input parameter is invalid
param_nameThe parameter in the input file that needs to be changed
valueThe value that proved to be incorrect
fileThe file that threw the exception (use FILE macro)
lineThe line number that threw the exception (use LINE macro)
psi::InputException::InputException ( std::string  msg,
std::string  param_name,
std::string  value,
const char *  file,
int  line 
)
throw (
)

Constructor

Parameters
msgA message descring why the input parameter is invalid
param_nameThe parameter in the input file that needs to be changed
valueThe value that proved to be incorrect
fileThe file that threw the exception (use FILE macro)
lineThe line number that threw the exception (use LINE macro)
psi::InputException::InputException ( std::string  msg,
std::string  param_name,
const char *  file,
int  line 
)
throw (
)

Constructor

Parameters
msgA message descring why the input parameter is invalid
param_nameThe parameter in the input file that needs to be changed
fileThe file that threw the exception (use FILE macro)
lineThe line number that threw the exception (use LINE macro)

Member Function Documentation

template<class T >
void psi::InputException::write_input_msg ( std::string  msg,
std::string  param_name,
val 
)
throw (
)
private

Template method for writing generic input exception message


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