Fast CDR  Version 1.0.23
Fast CDR
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. More...
 
virtual void raise () const =0
 This function throws the object as exception. More...
 
virtual const char * what () const noexcept override
 This function returns the error message. More...
 

Protected Member Functions

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

Detailed Description

This abstract class is used to create exceptions.

Constructor & Destructor Documentation

◆ ~Exception()

virtual ~Exception ( )
virtualnoexcept

Default destructor.

◆ Exception() [1/2]

Exception ( const char *const &  message)
protectednoexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

◆ Exception() [2/2]

Exception ( const Exception ex)
protectednoexcept

Default copy constructor.

Parameters
exException that will be copied.

Member Function Documentation

◆ operator=()

Exception& operator= ( const Exception ex)
protectednoexcept

Assigment operation.

Parameters
exException that will be copied.

◆ raise()

virtual void raise ( ) const
pure virtual

This function throws the object as exception.

Implemented in NotEnoughMemoryException, and BadParamException.

◆ 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: