mpqc::ProgrammingError Class Reference
Collaboration diagram for mpqc::ProgrammingError:
Documentation
This is thrown when a situations arises that should be impossible.
Public Member Functions | |
ProgrammingError (const char *description=0, const char *file=0, int line=0, const char *exception_type="ProgrammingError") noexcept | |
ProgrammingError (const ProgrammingError &)=default | |
ProgrammingError (ProgrammingError &&)=default | |
virtual | ~ProgrammingError ()=default |
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
◆ ProgrammingError() [1/3]
|
noexcept |
Create a ProgrammingError exception.
- Parameters
-
description a description of the problem. file the file name where the problem occured. line the line number where the exception occured. exception_type the classname of the Exception specialization. The default is "ProgrammingError".
It is suggested that the special macros FILE and LINE be given as the file
and line
arguments, respectively.
◆ ProgrammingError() [2/3]
|
default |
◆ ProgrammingError() [3/3]
|
default |
◆ ~ProgrammingError()
|
virtualdefault |
The documentation for this class was generated from the following files:
- mpqc/util/core/exception.h
- mpqc/util/core/exception.cpp