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]
|
noexcept |
Create a InputError exception.
- Parameters
-
description a description of the problem. file the file name where the problem occured. line the line number where the exception occured. keyword the keyword that was being read. value the value associated with the keyword exception_type the 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]
|
noexcept |
◆ InputError() [3/3]
|
default |
◆ ~InputError()
|
virtualdefault |
Member Function Documentation
◆ keyword()
|
inlinenoexcept |
Return the keyword having an erroneous value.
◆ value()
|
inlinenoexcept |
Return the erroneous value which caused this exception to be thrown.
The documentation for this class was generated from the following files:
- mpqc/util/core/exception.h
- mpqc/util/core/exception.cpp