|
pjmsg_mcap_wrapper
|
This abstract class is used to create exceptions.
Definition at line 29 of file Exception.h.
#include <Exception.h>
Public Member Functions | |
| virtual Cdr_DllAPI | ~Exception () noexcept |
| Default destructor. | |
| virtual Cdr_DllAPI void | raise () const =0 |
| This function throws the object as exception. | |
| virtual Cdr_DllAPI const char * | what () const noexcept override |
| This function returns the error message. | |
| T | what (T... args) |
Protected Member Functions | |
| Cdr_DllAPI | Exception (const char *const &message) noexcept |
| Default constructor. | |
| Cdr_DllAPI | Exception (const Exception &ex) noexcept |
| Default copy constructor. | |
| Cdr_DllAPI | Exception (Exception &&ex) noexcept |
| Default move constructor. | |
| Cdr_DllAPI Exception & | operator= (const Exception &ex) noexcept |
| Assigment operation. | |
| Cdr_DllAPI Exception & | operator= (Exception &&ex) noexcept |
| Assigment operation. | |
Private Attributes | |
| const char * | m_message |
|
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.