psi::PsiException Class Reference

#include <exception.h>

Inheritance diagram for psi::PsiException:

psi::LimitExceeded< double > psi::LimitExceeded< int > psi::LimitExceeded< size_t > psi::FeatureNotImplemented psi::InputException psi::LimitExceeded< T > psi::SanityCheckError psi::StepSizeError psi::MaxIterationsExceeded psi::ResourceAllocationError psi::ConvergenceError

List of all members.

Public Member Functions

 PsiException (std::string message, const char *file, int line) throw ()
 PsiException (const PsiException &copy) throw ()
PsiExceptionoperator= (const PsiException &other)
const char * what () const throw ()
const char * file () const throw ()
const char * location () const throw ()
int line () const throw ()

Protected Member Functions

void rewrite_msg (std::string msg) throw ()


Detailed Description

Generic exception class for Psi4

Constructor & Destructor Documentation

psi::PsiException::PsiException ( std::string  message,
const char *  file,
int  line 
) throw ()

Constructor

Parameters:
message The message that will be printed by exception
file The file that threw the exception (use __FILE__ macro)
line The line number that threw the exception (use __LINE__ macro)


Member Function Documentation

void psi::PsiException::rewrite_msg ( std::string  msg  )  throw () [protected]

Override default message for exception throw in what

Parameters:
msg The message for what to throw

const char * PsiException::what (  )  const throw ()

Override of runtime_error's virtual what method

Returns:
Description of exception

const char * PsiException::file (  )  const throw ()

Accessor method

Returns:
File that threw the exception

const char * PsiException::location (  )  const throw ()

Accessor method

Returns:
A string description of line and file that threw exception

int PsiException::line (  )  const throw ()

Accessor method

Returns:
The line number that threw the exception


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

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