17#include <nlohmann/json.hpp>
53NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
Error, code, message)
The messages that are used in the communication between the agent and the client.
Definition accel.hpp:22
ErrorCode
Error codes that indicate what went wrong.
Definition error.hpp:24
@ kNotExecuted
The request was not executed. Try looking at the message for more information.
@ kInvalidRequest
The request was invalid, probably indicates a bug in the client.
@ kTimeout
The request timed out.
@ kSuccess
Success (no error)
@ kTransportError
There was an error while transporting the message to the other side.
Error message to communicate that contains an error code and a message.
Definition error.hpp:36
std::string message
The error message.
Definition error.hpp:45
ErrorCode code
The error code.
Definition error.hpp:40
auto operator<=>(const Error &other) const =default
Compare two Error messages.