22 #include <sdf/sdf_config.h>
29 #pragma warning(disable: 4251)
35 inline namespace SDF_VERSION_NAMESPACE {
80 ELEMENT_INCORRECT_TYPE,
89 DIRECTORY_NONEXISTANT,
92 MODEL_CANONICAL_LINK_INVALID,
98 NESTED_MODELS_UNSUPPORTED,
101 LINK_INERTIA_INVALID,
104 JOINT_CHILD_LINK_INVALID,
107 JOINT_PARENT_LINK_INVALID,
110 JOINT_PARENT_SAME_AS_CHILD,
114 FRAME_ATTACHED_TO_INVALID,
117 FRAME_ATTACHED_TO_CYCLE,
120 FRAME_ATTACHED_TO_GRAPH_ERROR,
124 POSE_RELATIVE_TO_INVALID,
127 POSE_RELATIVE_TO_CYCLE,
130 POSE_RELATIVE_TO_GRAPH_ERROR,
159 public:
explicit operator bool()
const;
178 private:
ErrorCode code = ErrorCode::NONE;
183 #pragma warning(push)
184 #pragma warning(disable: 4251)
187 private: std::string message =
"";
ErrorCode Code() const
Get the error code.
friend SDFORMAT_VISIBLE std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error.
std::string Message() const
Get the error message, which is a description of the error.
Error()=default
default constructor
Error(const ErrorCode _code, const std::string &_message)
Constructor.
bool operator==(const bool _value) const
Compare this Error to a boolean value.
ErrorCode
Set of error codes.
Definition: Error.hh:45
namespace for Simulation Description Format parser
Definition: Actor.hh:33
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48