Class Exception
Defined in File Exception.h
Inheritance Relationships
Base Type
public std::exception
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 : 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:
ex – Exception that will be copied.
-
Cdr_DllAPI Exception(Exception &&ex) noexcept
Default move constructor.
- Parameters:
ex – Exception that will be moved.
- Cdr_DllAPI Exception & operator= (const Exception &ex) noexcept
Assigment operation.
- Parameters:
ex – Exception that will be copied.
- Cdr_DllAPI Exception & operator= (Exception &&ex) noexcept
Assigment operation.
- Parameters:
ex – Exception that will be moved.
-
virtual Cdr_DllAPI ~Exception() noexcept