38 #include "canopen_error.h"
69 explicit dictionary_error(
type error_type,
const std::string& entry_name,
const std::string& additional_information =
"");
75 virtual const char*
what() const noexcept override;
85 std::
string m_message;
86 std::
string m_entry_name;
This type of exception is thrown if there are problems accessing the object dictionary or arguments d...
dictionary_error(type error_type, const std::string &entry_name, const std::string &additional_information="")
Constructor.
This is the base class of all types of exceptions thrown by the KaCanOpen library. It can be used directly like std::runtime_error if there isn't any more specific error class.
std::string get_entry_name() const noexcept
Returns the name of the dictionary entry.
type
Exact type of the error.
virtual ~dictionary_error()
Destructor.
virtual const char * what() const noexceptoverride
Returns error description.
type get_type() const noexcept
Returns type of the error.