19#include <creos/messages/error.hpp>
20#include <creos/utils_global.hpp>
22#include <source_location>
32class CREOS_UTILS_API
Exception :
public std::exception {
34 Exception(
const std::string& message) : message_(message) {}
43 const char*
what() const noexcept
override {
return message_.c_str(); }
67 NotImplementedError(
const std::string& message = std::source_location::current().function_name())
Something already exists when trying to create it.
Definition errors.hpp:130
Connection error.
Definition errors.hpp:55
Exception class for the CreOS client library.
Definition errors.hpp:32
const char * what() const noexcept override
Returns the error message.
Definition errors.hpp:43
Invalid argument error.
Definition errors.hpp:76
The function is not implemented.
Definition errors.hpp:65
An error occurred while publishing data.
Definition errors.hpp:140
Service call failure.
Definition errors.hpp:105
An error occurred while subscribing to data.
Definition errors.hpp:150
Timeout error.
Definition errors.hpp:88
A part of the API is not supported by the connected robot.
Definition errors.hpp:120
ErrorCode
Error codes that indicate what went wrong.
Definition error.hpp:24
The main namespace for the CreOS client library.