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