This abstract class is used to create exceptions. More...
#include <Exception.h>
Public Member Functions | |
virtual Cdr_DllAPI void | raise () const =0 |
This function throws the object as exception. More... | |
virtual const Cdr_DllAPI char * | what () const noexcept override |
This function returns the error message. More... | |
virtual Cdr_DllAPI | ~Exception () noexcept |
Default destructor. More... | |
Protected Member Functions | |
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... | |
Private Attributes | |
const char * | m_message |
This abstract class is used to create exceptions.
Definition at line 29 of file Exception.h.
|
virtualnoexcept |
Default destructor.
Definition at line 51 of file Exception.cpp.
|
protectednoexcept |
Default constructor.
message | A error message. This message pointer is copied. |
Definition at line 19 of file Exception.cpp.
|
protectednoexcept |
Default copy constructor.
ex | Exception that will be copied. |
Definition at line 25 of file Exception.cpp.
|
protectednoexcept |
Default move constructor.
ex | Exception that will be moved. |
Definition at line 31 of file Exception.cpp.
Assigment operation.
ex | Exception that will be copied. |
Definition at line 37 of file Exception.cpp.
Assigment operation.
ex | Exception that will be moved. |
Definition at line 44 of file Exception.cpp.
|
pure virtual |
This function throws the object as exception.
Implemented in eprosima::fastcdr::exception::BadOptionalAccessException, eprosima::fastcdr::exception::BadParamException, eprosima::fastcdr::exception::LockedExternalAccessException, and eprosima::fastcdr::exception::NotEnoughMemoryException.
|
overridevirtualnoexcept |
This function returns the error message.
Definition at line 55 of file Exception.cpp.
|
private |
Definition at line 90 of file Exception.h.