18.2.5.1. Exception

class Exception : public exception

This abstract class is used to create exceptions.

Subclassed by eprosima::fastrtps::rtps::security::SecurityException

Public Functions

virtual ~Exception()

Default destructor.

const int32_t &minor() const

This function returns the number associated with the system exception.

Returns

The number associated with the system exception.

void minor(const int32_t &minor)

This function sets the number that will be associated with the system exception.

Parameters

minor – The number that will be associated with the system exception.

virtual void raise() const = 0

This function throws the object as exception.

virtual const char *what() const

This function returns the error message.

Returns

The error message.