Class Exception
Defined in File Exception.h
Inheritance Relationships
Derived Types
public eprosima::fastcdr::exception::BadOptionalAccessException(Class BadOptionalAccessException)public eprosima::fastcdr::exception::BadParamException(Class BadParamException)public eprosima::fastcdr::exception::LockedExternalAccessException(Class LockedExternalAccessException)public eprosima::fastcdr::exception::NotEnoughMemoryException(Class NotEnoughMemoryException)
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:
ex – Exception that will be copied.
-
Exception(Exception &&ex) noexcept
Default move constructor.
- Parameters:
ex – Exception that will be moved.
-
virtual ~Exception() noexcept