Public Member Functions | Protected Member Functions | Private Attributes | List of all members
eprosima::fastcdr::exception::Exception Class Referenceabstract

This abstract class is used to create exceptions. More...

#include <Exception.h>

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

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

Private Attributes

const char * m_message
 

Detailed Description

This abstract class is used to create exceptions.

Definition at line 29 of file Exception.h.

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:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30