11#ifndef RTCKT_TELSUB_BLENDERERROR_HPP
12#define RTCKT_TELSUB_BLENDERERROR_HPP
15#include <system_error>
64 const char*
name() const noexcept
override {
74 std::string
message(
int ev)
const override {
77 return "Success: operation completed successfully";
79 return "Missing required topic in input data";
81 return "Data size does not match expected size";
83 return "Data format is invalid or corrupted";
85 return "Unknown error occurred";
87 return "Unknown blender error value";
98 return {
static_cast<int>(e), *
this};
Error category for blender errors.
Definition blenderError.hpp:57
std::error_code MakeBlenderError(GenericBlenderError e) const noexcept
Creates an error_code from a BlenderError.
Definition blenderError.hpp:97
std::string message(int ev) const override
Returns a descriptive message for an error code.
Definition blenderError.hpp:74
const char * name() const noexcept override
Returns the name of this error category.
Definition blenderError.hpp:64
GenericBlenderError
Error codes for blender-related errors.
Definition blenderError.hpp:28
@ MissingTopic
Required topic was not found in the input data.
Definition blenderError.hpp:30
@ Success
No error, operation successful.
Definition blenderError.hpp:29
@ SizeMismatch
Data size does not match expected size.
Definition blenderError.hpp:31
@ UnknownError
Generic unknown error.
Definition blenderError.hpp:33
@ InvalidFormat
Data format is invalid or corrupted.
Definition blenderError.hpp:32
std::error_code MakeBlenderError(GenericBlenderError e) noexcept
Creates an error_code for a blender error.
Definition blenderError.cpp:29
const std::error_category & GetBlenderErrorCategory() noexcept
Returns a reference to the global blender error category instance.
Definition blenderError.cpp:19
Definition commandReplier.cpp:21
Definition ddsSub.hpp:155