This class is thrown as an exception when accessing the value of a null optional. More...
#include <BadOptionalAccessException.hpp>
Inherits Exception.
Public Member Functions | |
| BadOptionalAccessException (const char *const &message) noexcept | |
| Default constructor. More... | |
| BadOptionalAccessException (const BadOptionalAccessException &ex) noexcept | |
| Default copy constructor. More... | |
| BadOptionalAccessException (BadOptionalAccessException &&ex) noexcept | |
| Default move constructor. More... | |
| BadOptionalAccessException & | operator= (const BadOptionalAccessException &ex) noexcept |
| Assigment operation. More... | |
| BadOptionalAccessException & | operator= (BadOptionalAccessException &&ex) noexcept |
| Assigment operation. More... | |
| virtual | ~BadOptionalAccessException () noexcept |
| Default destructor. More... | |
| void | raise () const override |
| This function throws the object as exception. More... | |
Public Member Functions inherited from Exception | |
| virtual | ~Exception () noexcept |
| Default destructor. More... | |
| virtual const char * | what () const noexcept |
| This function returns the error message. More... | |
Static Public Attributes | |
| static const char *const | BAD_OPTIONAL_ACCESS_MESSAGE_DEFAULT |
| Default message used in the library. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Exception | |
| Exception (const char *const &message) noexcept | |
| Default constructor. More... | |
| Exception (const Exception &ex) noexcept | |
| Default copy constructor. More... | |
| Exception (Exception &&ex) noexcept | |
| Default move constructor. More... | |
| Exception & | operator= (const Exception &ex) noexcept |
| Assigment operation. More... | |
| Exception & | operator= (Exception &&ex) noexcept |
| Assigment operation. More... | |
This class is thrown as an exception when accessing the value of a null optional.
|
noexcept |
Default constructor.
| message | An error message. This message pointer is copied. |
|
noexcept |
Default copy constructor.
| ex | BadOptionalAccessException that will be copied. |
|
noexcept |
Default move constructor.
| ex | BadOptionalAccessException that will be moved. |
|
virtualnoexcept |
Default destructor.
|
noexcept |
Assigment operation.
| ex | BadOptionalAccessException that will be moved. |
|
noexcept |
Assigment operation.
| ex | BadOptionalAccessException that will be copied. |
|
overridevirtual |
This function throws the object as exception.
Implements Exception.
|
static |
Default message used in the library.