22 #include <sdf/sdf_config.h> 29 #pragma warning(disable: 4251) 35 inline namespace SDF_VERSION_NAMESPACE {
98 public:
Error() =
default;
104 public:
Error(
const ErrorCode _code,
const std::string &_message);
113 public: std::string Message()
const;
118 public:
explicit operator bool()
const;
127 public:
bool operator==(
const bool _value)
const;
134 const sdf::Error &_err)
136 _out <<
"Error Code " 137 <<
static_cast<std::underlying_type<sdf::ErrorCode>::type
>(_err.Code())
138 <<
" Msg: " << _err.Message();
148 #pragma warning(push) 149 #pragma warning(disable: 4251) 151 private: std::string message =
"";
Indicates that reading an SDF file failed.
Indicates that reading an SDF string failed.
An unspecified sensor type.
This error indicates that an SDF attribute is invalid.
This error indicates that an SDF element is deprecated.
A error occured while trying to resolve a URI.
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
This error indicates that an SDF element is invalid.
A duplicate name was found for an element where unique names are required.
This error indicates that an SDF attribute is deprecated.
Indicates that a required SDF attribute is missing.
Indicates that a required SDF element is missing.
ErrorCode
Set of error codes.
Definition: Error.hh:44
namespace for Simulation Description Format parser
Definition: AirPressure.hh:25
A filesystem directory does not exist.
Indicates that an incorrect SDF element type was encountered.
A link has invalid inertia.
friend std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error.
Definition: Error.hh:133