Fast CDR  Version 2.2.3
Fast CDR
Loading...
Searching...
No Matches
Exception Class Referenceabstract

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

#include <Exception.h>

Inheritance diagram for Exception:

Public Member Functions

virtual ~Exception () noexcept
 Default destructor.
 
virtual void raise () const =0
 This function throws the object as exception.
 
virtual const char * what () const noexcept override
 This function returns the error message.
 

Protected Member Functions

 Exception (const char *const &message) noexcept
 Default constructor.
 
 Exception (const Exception &ex) noexcept
 Default copy constructor.
 
 Exception (Exception &&ex) noexcept
 Default move constructor.
 
Exceptionoperator= (const Exception &ex) noexcept
 Assigment operation.
 
Exceptionoperator= (Exception &&ex) noexcept
 Assigment operation.
 

Detailed Description

This abstract class is used to create exceptions.

Constructor & Destructor Documentation

◆ ~Exception()

virtual ~Exception ( )
virtualnoexcept

Default destructor.

◆ Exception() [1/3]

Exception ( const char *const &  message)
protectednoexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

◆ Exception() [2/3]

Exception ( const Exception ex)
protectednoexcept

Default copy constructor.

Parameters
exException that will be copied.

◆ Exception() [3/3]

Exception ( Exception &&  ex)
protectednoexcept

Default move constructor.

Parameters
exException that will be moved.

Member Function Documentation

◆ operator=() [1/2]

Exception & operator= ( const Exception ex)
protectednoexcept

Assigment operation.

Parameters
exException that will be copied.

◆ operator=() [2/2]

Exception & operator= ( Exception &&  ex)
protectednoexcept

Assigment operation.

Parameters
exException that will be moved.

◆ raise()

virtual void raise ( ) const
pure virtual

This function throws the object as exception.

Implemented in BadOptionalAccessException, BadParamException, LockedExternalAccessException, and NotEnoughMemoryException.

◆ what()

virtual const char * what ( ) const
overridevirtualnoexcept

This function returns the error message.

Returns
The error message.

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