Go to the documentation of this file.
28 #pragma warning(disable: 4251)
107 public:
explicit operator bool()
const;
125 _out <<
"Error Code: "
126 <<
static_cast<std::underlying_type<sdf::ErrorCode>::type
>(_err.
Code())
137 #pragma warning(push)
138 #pragma warning(disable: 4251)
140 private: std::string message =
"";
@ DIRECTORY_NONEXISTANT
A filesystem directory does not exist.
@ URI_INVALID
A URI is invalid.
namespace for Simulation Description Format parser
Definition: Console.hh:36
Error(const ErrorCode _code, const std::string &_message)
Constructor.
friend std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error.
Definition: Error.hh:122
std::string Message() const
Get the error message, which is a description of the error.
@ URI_LOOKUP
A error occured while trying to resolve a URI.
bool operator==(const bool _value) const
Compare this Error to a boolean value.
ErrorCode
Set of error codes. Usually one or more errors are returned in an Errors vector. The collection of Er...
Definition: Error.hh:40
Error()=default
default constructor
@ ELEMENT_INCORRECT_TYPE
Indicates that an incorrect SDF element type was encountered.
@ DUPLICATE_NAME
A duplicate name was found for an element where unique names are required.
@ ATTRIBUTE_INVALID
This error indicates that an SDF attribute is invalid.
@ ELEMENT_DEPRECATED
This error indicates that an SDF element is deprecated.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
@ ATTRIBUTE_MISSING
Indicates that a required SDF attribute is missing.
@ FILE_READ
Indicates that reading an SDF file failed.
@ ELEMENT_MISSING
Indicates that a required SDF element is missing.
@ ATTRIBUTE_DEPRECATED
This error indicates that an SDF attribute is deprecated.
ErrorCode Code() const
Get the error code.
@ ELEMENT_INVALID
This error indicates that an SDF element is invalid.