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)
141 private: std::string message =
"";
std::string Message() const
Get the error message, which is a description of the error.
Error(const ErrorCode _code, const std::string &_message)
Constructor.
ErrorCode Code() const
Get the error code.
bool operator==(const bool _value) const
Compare this Error to a boolean value.
Error()=default
default constructor
friend std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error.
Definition Error.hh:122
namespace for Simulation Description Format parser
Definition Console.hh:36
ErrorCode
Set of error codes.
Definition Error.hh:40
@ ELEMENT_DEPRECATED
This error indicates that an SDF element is deprecated.
Definition Error.hh:67
@ URI_INVALID
A URI is invalid.
Definition Error.hh:75
@ DUPLICATE_NAME
A duplicate name was found for an element where unique names are required.
Definition Error.hh:49
@ ATTRIBUTE_INVALID
This error indicates that an SDF attribute is invalid.
Definition Error.hh:55
@ URI_LOOKUP
A error occured while trying to resolve a URI.
Definition Error.hh:78
@ ELEMENT_INVALID
This error indicates that an SDF element is invalid.
Definition Error.hh:64
@ DIRECTORY_NONEXISTANT
A filesystem directory does not exist.
Definition Error.hh:81
@ ELEMENT_MISSING
Indicates that a required SDF element is missing.
Definition Error.hh:61
@ FILE_READ
Indicates that reading an SDF file failed.
Definition Error.hh:45
@ ELEMENT_INCORRECT_TYPE
Indicates that an incorrect SDF element type was encountered.
Definition Error.hh:72
@ ATTRIBUTE_DEPRECATED
This error indicates that an SDF attribute is deprecated.
Definition Error.hh:58
@ NONE
Definition Error.hh:42
@ ATTRIBUTE_MISSING
Indicates that a required SDF attribute is missing.
Definition Error.hh:52
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:48