mpqc::Exception Class Reference
Collaboration diagram for mpqc::Exception:

Documentation

This is a mpqc::detail::Exception specialization that is the base of all exception classes in MPQC

Public Member Functions

 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

◆ Exception() [1/3]

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

Create an Exception.

Parameters
descriptiona description of the problem.
filethe file name where the problem occured.
linethe line number where the exception occured.
exception_typethe classname of the Exception specialization. The default is "Exception".

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

◆ Exception() [2/3]

Exception::Exception ( const Exception ref)
noexcept

◆ Exception() [3/3]

mpqc::Exception::Exception ( Exception &&  )
default

◆ ~Exception()

Exception::~Exception ( )
virtualnoexcept

Reimplemented from mpqc::detail::Exception.

Member Function Documentation

◆ elaborate()

std::ostream & Exception::elaborate ( )

Returns a stream where additional information about the exception can be written. This will throw if a valid stream cannot be returned (possibly due to low memory).

◆ exception_type()

const char* mpqc::Exception::exception_type ( ) const
inlinenoexcept

Returns the classname of the exception. May return null.

◆ what()

const char * Exception::what ( ) const
noexcept

overload of Exception::what()


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