28 #pragma warning(disable: 4251)
87 public:
Error() =
default;
102 public: std::string Message()
const;
107 public:
explicit operator bool()
const;
116 public:
bool operator==(
const bool _value)
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 =
"";
A error occured while trying to resolve a URI.
Indicates that a required SDF attribute is missing.
A filesystem directory does not exist.
friend std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error.
Definition: Error.hh:122
Indicates that a required SDF element is missing.
This error indicates that an SDF element is deprecated.
std::string Message() const
Get the error message, which is a description of the error.
This error indicates that an SDF attribute is deprecated.
#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.
Indicates that reading an SDF file failed.
Indicates that an incorrect SDF element type was encountered.
This error indicates that an SDF attribute is invalid.
ErrorCode
Set of error codes.
Definition: Error.hh:39
ErrorCode Code() const
Get the error code.