12#ifndef RTCKT_TELSUB_BLENDERERROR_HPP
13#define RTCKT_TELSUB_BLENDERERROR_HPP
16#include <system_error>
65 const char*
name() const noexcept
override {
75 std::string
message(
int ev)
const override {
78 return "Success: operation completed successfully";
80 return "Missing required topic in input data";
82 return "Data size does not match expected size";
84 return "Data format is invalid or corrupted";
86 return "Unknown error occurred";
88 return "Unknown blender error value";
99 return {
static_cast<int>(e), *
this};
Error category for blender errors.
Definition blenderError.hpp:58
std::error_code MakeBlenderError(GenericBlenderError e) const noexcept
Creates an error_code from a BlenderError.
Definition blenderError.hpp:98
std::string message(int ev) const override
Returns a descriptive message for an error code.
Definition blenderError.hpp:75
const char * name() const noexcept override
Returns the name of this error category.
Definition blenderError.hpp:65
std::error_code MakeBlenderError(GenericBlenderError e) noexcept
Creates an error_code for a blender error.
Definition blenderError.cpp:30
GenericBlenderError
Error codes for blender-related errors.
Definition blenderError.hpp:29
@ MissingTopic
Required topic was not found in the input data.
Definition blenderError.hpp:31
@ Success
No error, operation successful.
Definition blenderError.hpp:30
@ SizeMismatch
Data size does not match expected size.
Definition blenderError.hpp:32
@ UnknownError
Generic unknown error.
Definition blenderError.hpp:34
@ InvalidFormat
Data format is invalid or corrupted.
Definition blenderError.hpp:33
const std::error_category & GetBlenderErrorCategory() noexcept
Returns a reference to the global blender error category instance.
Definition blenderError.cpp:20
Definition commandReplier.cpp:22
Definition ddsSub.hpp:156