mpqc::InputError Class Reference
Collaboration diagram for mpqc::InputError:

Documentation

This is thrown when invalid input is provided. Note that sometimes input can be internally generated, so what logically would be a ProgrammingError could result in an InputError being thrown.

Public Member Functions

 InputError (const char *description=0, const char *file=0, int line=0, const char *keyword=0, const char *value=0, const char *exception_type="InputError") noexcept
 
 InputError (const InputError &) noexcept
 
 InputError (InputError &&)=default
 
virtual ~InputError ()=default
 
const char * keyword () const noexcept
 Return the keyword having an erroneous value. More...
 
const char * value () const noexcept
 
- Public Member Functions inherited from mpqc::Exception
 Exception (const char *description=0, const char *file=0, int line=0, const char *exception_type="Exception") noexcept
 
 Exception (const Exception &) noexcept
 
 Exception (Exception &&)=default
 
virtual ~Exception () noexcept
 
const char * what () const noexcept
 overload of Exception::what() More...
 
const char * exception_type () const noexcept
 Returns the classname of the exception. May return null. More...
 
std::ostream & elaborate ()
 
- Public Member Functions inherited from mpqc::detail::Exception
 Exception (const char *description=0, const char *file=0, int line=0) noexcept
 
 Exception (const Exception &)=default
 
 Exception (Exception &&)=default
 
const char * description () const noexcept
 
const char * file () const noexcept
 
int line () const noexcept
 

Constructor & Destructor Documentation

◆ InputError() [1/3]

InputError::InputError ( const char *  description = 0,
const char *  file = 0,
int  line = 0,
const char *  keyword = 0,
const char *  value = 0,
const char *  exception_type = "InputError" 
)
noexcept

Create a InputError exception.

Parameters
descriptiona description of the problem.
filethe file name where the problem occured.
linethe line number where the exception occured.
keywordthe keyword that was being read.
valuethe value associated with the keyword
exception_typethe classname of the Exception specialization. The default is "InputError".

It is suggested that the special macros FILE and LINE be given as the file and line arguments, respectively.

◆ InputError() [2/3]

InputError::InputError ( const InputError other)
noexcept

◆ InputError() [3/3]

mpqc::InputError::InputError ( InputError &&  )
default

◆ ~InputError()

virtual mpqc::InputError::~InputError ( )
virtualdefault

Member Function Documentation

◆ keyword()

const char* mpqc::InputError::keyword ( ) const
inlinenoexcept

Return the keyword having an erroneous value.

◆ value()

const char* mpqc::InputError::value ( ) const
inlinenoexcept

Return the erroneous value which caused this exception to be thrown.


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