Modulo 5.0.0
Loading...
Searching...
No Matches
exceptions.hpp
1#pragma once
2
3#include <stdexcept>
4#include <string>
5
11
17class CoreException : public std::runtime_error {
18public:
19 explicit CoreException(const std::string& msg) : CoreException("CoreException", msg){};
20
21protected:
22 CoreException(const std::string& prefix, const std::string& msg) : std::runtime_error(prefix + ": " + msg) {}
23};
24
31public:
32 explicit AddServiceException(const std::string& msg) : CoreException("AddServiceException", msg) {}
33};
34
41public:
42 explicit AddSignalException(const std::string& msg) : CoreException("AddSignalException", msg) {}
43};
44
51public:
52 explicit InvalidAssignmentException(const std::string& msg) : CoreException("InvalidAssignmentException", msg) {}
53};
54
61public:
62 explicit InvalidPointerCastException(const std::string& msg) : CoreException("InvalidPointerCastException", msg) {}
63};
64
71public:
72 explicit InvalidPointerException(const std::string& msg) : CoreException("InvalidPointerException", msg) {}
73};
74
82public:
83 explicit LookupTransformException(const std::string& msg) : CoreException("LookupTransformException", msg) {}
84};
85
91public:
92 explicit MessageTranslationException(const std::string& msg) : CoreException("MessageTranslationException", msg) {}
93};
94
101public:
102 explicit NullPointerException(const std::string& msg) : CoreException("NullPointerException", msg) {}
103};
104
112public:
113 explicit ParameterException(const std::string& msg) : CoreException("ParameterException", msg) {}
114};
115
123public:
124 explicit ParameterTranslationException(const std::string& msg)
125 : CoreException("ParameterTranslationException", msg) {}
126};
127
135public:
136 explicit LookupJointPositionsException(const std::string& msg)
137 : CoreException("LookupJointPositionsException", msg) {}
138};
139}// namespace modulo_core::exceptions
An exception class to notify errors when adding a service.
An exception class to notify errors when adding a signal.
A base class for all core exceptions.
An exception class to notify errors when getting the value of an assignment.
An exception class to notify if the result of getting an instance of a derived class through dynamic ...
An exception class to notify if an object has no reference count (if the object is not owned by any p...
An exception class to notify an error while looking up joint positions.
An exception class to notify an error while looking up TF transforms.
An exception class to notify that the translation of a ROS message failed.
An exception class to notify that a certain pointer is null.
An exception class to notify errors with parameters in modulo classes.
An exception class to notify incompatibility when translating parameters from different sources.
Modulo Core exceptions module for defining exception classes.