pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
eprosima::fastcdr::exception::Exception Class Referenceabstract

Detailed Description

This abstract class is used to create exceptions.

Definition at line 29 of file Exception.h.

#include <Exception.h>

Inheritance diagram for eprosima::fastcdr::exception::Exception:
[legend]

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.
 
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 Exceptionoperator= (const Exception &ex) noexcept
 Assigment operation.
 
Cdr_DllAPI Exceptionoperator= (Exception &&ex) noexcept
 Assigment operation.
 

Private Attributes

const char * m_message
 

Constructor & Destructor Documentation

◆ ~Exception()

Exception::~Exception ( )
virtualnoexcept

Default destructor.

Definition at line 51 of file Exception.cpp.

◆ Exception() [1/3]

Exception::Exception ( const char *const &  message)
protectednoexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

Definition at line 19 of file Exception.cpp.

◆ Exception() [2/3]

Exception::Exception ( const Exception ex)
protectednoexcept

Default copy constructor.

Parameters
exException that will be copied.

Definition at line 25 of file Exception.cpp.

◆ Exception() [3/3]

Exception::Exception ( Exception &&  ex)
protectednoexcept

Default move constructor.

Parameters
exException that will be moved.

Definition at line 31 of file Exception.cpp.

Member Function Documentation

◆ operator=() [1/2]

Exception & Exception::operator= ( const Exception ex)
protectednoexcept

Assigment operation.

Parameters
exException that will be copied.

Definition at line 37 of file Exception.cpp.

◆ operator=() [2/2]

Exception & Exception::operator= ( Exception &&  ex)
protectednoexcept

Assigment operation.

Parameters
exException that will be moved.

Definition at line 44 of file Exception.cpp.

◆ raise()

virtual Cdr_DllAPI void eprosima::fastcdr::exception::Exception::raise ( ) const
pure virtual

◆ what()

const char * Exception::what ( ) const
overridevirtualnoexcept

This function returns the error message.

Returns
The error message.

Definition at line 55 of file Exception.cpp.

Member Data Documentation

◆ m_message

const char* eprosima::fastcdr::exception::Exception::m_message
private

Definition at line 90 of file Exception.h.


The documentation for this class was generated from the following files: