Class Exception

Inheritance Relationships

Derived Types

Class Documentation

class 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 ~Exception() noexcept

Default destructor.

virtual void raise() const = 0

This function throws the object as exception.

virtual const char *what() const noexcept

This function returns the error message.

Returns:

The error message.

Protected Functions

Exception(const char *const &message) noexcept

Default constructor.

Parameters:

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

Exception(const Exception &ex) noexcept

Default copy constructor.

Parameters:

exException that will be copied.

Exception(Exception &&ex) noexcept

Default move constructor.

Parameters:

exException that will be moved.

Exception &operator=(const Exception &ex) noexcept

Assigment operation.

Parameters:

exException that will be copied.

Exception &operator=(Exception &&ex) noexcept

Assigment operation.

Parameters:

exException that will be moved.