Go to the documentation of this file.
22 #include <sdf/sdf_config.h>
29 #pragma warning(disable: 4251)
35 inline namespace SDF_VERSION_NAMESPACE {
159 public:
explicit operator bool()
const;
177 _out <<
"Error Code "
178 <<
static_cast<std::underlying_type<sdf::ErrorCode>::type
>(_err.
Code())
184 private:
ErrorCode code = ErrorCode::NONE;
189 #pragma warning(push)
190 #pragma warning(disable: 4251)
192 private: std::string message =
"";
@ ELEMENT_INVALID
This error indicates that an SDF element is invalid.
@ FRAME_ATTACHED_TO_INVALID
The frame attached-to value does not match the name of an existing frame in the current scope.
std::string Message() const
Get the error message, which is a description of the error.
@ DUPLICATE_NAME
A duplicate name was found for an element where unique names are required.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
@ ATTRIBUTE_DEPRECATED
This error indicates that an SDF attribute is deprecated.
@ NESTED_MODELS_UNSUPPORTED
Indicates that a DOM object tried to read a nested model.
@ MODEL_WITHOUT_LINK
A model without a link.
@ JOINT_PARENT_LINK_INVALID
A joint has an invalid parent link.
@ POSE_RELATIVE_TO_GRAPH_ERROR
The pose relative-to graph has an internal error.
@ POSE_RELATIVE_TO_INVALID
The pose relative-to value does not match the name of an existing frame in the current scope.
Error()=default
default constructor
Error(const ErrorCode _code, const std::string &_message)
Constructor.
@ RESERVED_NAME
A reserved name was used in an entity name attribute.
@ ATTRIBUTE_INVALID
This error indicates that an SDF attribute is invalid.
ErrorCode
Definition: Error.hh:45
@ FRAME_ATTACHED_TO_CYCLE
The frame attached-to graph contains a cycle.
bool operator==(const bool _value) const
Compare this Error to a boolean value.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
@ LINK_INERTIA_INVALID
A link has invalid inertia.
@ JOINT_PARENT_SAME_AS_CHILD
A joint has the same link specified as parent and child.
@ URI_LOOKUP
A error occured while trying to resolve a URI.
@ MODEL_CANONICAL_LINK_INVALID
A model with an invalid canonical link.
@ DIRECTORY_NONEXISTANT
A filesystem directory does not exist.
@ JOINT_CHILD_LINK_INVALID
A joint has an invalid child link.
@ URI_INVALID
A URI is invalid.
@ POSE_RELATIVE_TO_CYCLE
The pose relative-to graph contains a cycle.
@ ATTRIBUTE_MISSING
Indicates that a required SDF attribute is missing.
ErrorCode Code() const
Get the error code.
@ FILE_READ
Indicates that reading an SDF file failed.
@ FRAME_ATTACHED_TO_GRAPH_ERROR
The frame attached-to graph has an internal error.
@ STRING_READ
Indicates that reading an SDF string failed.
@ ELEMENT_INCORRECT_TYPE
Indicates that an incorrect SDF element type was encountered.
friend std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error.
Definition: Error.hh:174
@ ELEMENT_MISSING
Indicates that a required SDF element is missing.
@ ELEMENT_DEPRECATED
This error indicates that an SDF element is deprecated.