|
SpinParser
1.0
|
Descriptor object for exceptions. More...
#include <Exception.hpp>


Public Types | |
| enum | Type { Type::GenericError, Type::InternalError, Type::BadAllocation, Type::OutOfRange, Type::ArgumentError, Type::InitializationError, Type::IOError, Type::AssertionFail, Type::MpiError } |
| Exception types. More... | |
Public Member Functions | |
| Exception (const Exception::Type type) noexcept | |
| Construct a new Exception object. More... | |
| template<class T > | |
| Exception (const Exception::Type type, T details) noexcept | |
| Construct a new Exception object. More... | |
| ~Exception () noexcept | |
| Destroy the Exception object. | |
| const char * | what () const noexcept |
| Retrieve string form description of the exception. More... | |
| Exception::Type | type () const noexcept |
| Retrieve exception type. More... | |
Protected Attributes | |
| Exception::Type | _type |
| Type of the exception. | |
| std::string | _what |
| String form description of the exception. | |
Descriptor object for exceptions.
|
strong |
Exception types.
|
inlinenoexcept |
Construct a new Exception object.
| type | Type of exception to construct. |
|
inlinenoexcept |
Construct a new Exception object.
| T | Fundamental type of the exception detail descriptor. Must be convertible to a string. |
| type | Type of the exception. |
| details | Detailed descriptor of the exception. |
|
inlinenoexcept |
Retrieve exception type.
|
inlinenoexcept |
Retrieve string form description of the exception.
1.8.17