15#ifndef _FASTCDR_EXCEPTIONS_BADOPTIONALACCESSEXCEPTION_H_
16#define _FASTCDR_EXCEPTIONS_BADOPTIONALACCESSEXCEPTION_H_
37 const char*
const& message)
noexcept;
This class is thrown as an exception when accessing the value of a null optional.
virtual Cdr_DllAPI ~BadOptionalAccessException() noexcept
Default destructor.
static Cdr_DllAPI const char *const BAD_OPTIONAL_ACCESS_MESSAGE_DEFAULT
Default message used in the library.
Cdr_DllAPI void raise() const override
This function throws the object as exception.
Cdr_DllAPI BadOptionalAccessException & operator=(const BadOptionalAccessException &ex) noexcept
Assigment operation.
This abstract class is used to create exceptions.