5.1.4. Exception¶
-
class Exception : public std::exception¶
Base class for all exceptions thrown by the eProsima statistics backend library.
Subclassed by eprosima::statistics_backend::BadParameter, eprosima::statistics_backend::CorruptedFile, eprosima::statistics_backend::Error, eprosima::statistics_backend::Inconsistency, eprosima::statistics_backend::PreconditionNotMet, eprosima::statistics_backend::Unsupported
Public Functions
-
Exception(const char *message) noexcept¶
Construct a new statistics_backend::Exception object.
- Parameters
message – The message to be returned by what()
-
Exception(const std::string &message)¶
Construct a new statistics_backend::Exception object.
- Parameters
message – The message to be returned by what()
-
Exception(const Exception &other) = default¶
Copies the statistics_backend::Exception object into a new one.
- Parameters
other – The original exception object to copy
-
Exception &operator=(const Exception &other) = default¶
Copies the statistics_backend::Exception object into the current one.
- Parameters
other – The original exception object to copy
- Returns
the current statistics_backend::Exception object after the copy
-
virtual const char *what() const noexcept override¶
Returns the explanatory string of the exception.
- Returns
Null-terminated string with the explanatory information
-
Exception(const char *message) noexcept¶