Class Exception

Inheritance Relationships

Base Type

  • public std::exception

Derived Types

Class Documentation

class Exception : public std::exception

This abstract class is used to create exceptions.

Subclassed by eprosima::fastcdr::exception::BadOptionalAccessException, eprosima::fastcdr::exception::BadParamException, eprosima::fastcdr::exception::LockedExternalAccessException, eprosima::fastcdr::exception::NotEnoughMemoryException

Public 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.

Returns:

The error message.

Protected Functions

Cdr_DllAPI Exception(const char *const &message) noexcept

Default constructor.

Parameters:

message – A error message. This message pointer is copied.

Cdr_DllAPI Exception(const Exception &ex) noexcept

Default copy constructor.

Parameters:

exException that will be copied.

Cdr_DllAPI Exception(Exception &&ex) noexcept

Default move constructor.

Parameters:

exException that will be moved.

Cdr_DllAPI Exception & operator= (const Exception &ex) noexcept

Assigment operation.

Parameters:

exException that will be copied.

Cdr_DllAPI Exception & operator= (Exception &&ex) noexcept

Assigment operation.

Parameters:

exException that will be moved.