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 Cdr_DllAPI const 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 & | operator= (const 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 57 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.
Assigment operation.
| ex | Exception that will be copied. |
Definition at line 40 of file Exception.cpp.
|
pure virtual |
This function throws the object as exception.
Implemented in eprosima::fastcdr::exception::BadParamException, and eprosima::fastcdr::exception::NotEnoughMemoryException.
|
overridevirtualnoexcept |
This function returns the error message.
Definition at line 61 of file Exception.cpp.
|
private |
Definition at line 94 of file Exception.h.