23 #include <ignition/utils/ImplPtr.hh>    24 #include <sdf/sdf_config.h>    31 #pragma warning(disable: 4251)    37   inline namespace SDF_VERSION_NAMESPACE {
   157     public: 
Error(
const ErrorCode _code, 
const std::string &_message);
   165                   const std::string &_filePath);
   175                   const std::string &_filePath, 
int _lineNumber);
   184     public: std::string Message() 
const;
   189     public: std::optional<std::string> FilePath() 
const;
   193     public: std::optional<int> LineNumber() 
const;
   198     public: 
explicit operator bool() 
const;
   207     public: 
bool operator==(
const bool _value) 
const;
   214                                             const sdf::Error &_err)
   216       if (!_err.FilePath().has_value())
   218         _out << 
"Error Code "   219           << 
static_cast<std::underlying_type<sdf::ErrorCode>::type
>(
   221           << 
" Msg: " << _err.Message();
   223       else if (!_err.LineNumber().has_value())
   225         _out << 
"Error Code "   226           << 
static_cast<std::underlying_type<sdf::ErrorCode>::type
>(
   228           << 
": [" << _err.FilePath().value() << 
"]: "   229           << 
" Msg: " << _err.Message();
   233         _out << 
"Error Code "   234           << 
static_cast<std::underlying_type<sdf::ErrorCode>::type
>(
   236           << 
": [" << _err.FilePath().value() << 
":L"   237           << std::to_string(_err.LineNumber().value()) << 
"]: "   238           << 
" Msg: " << _err.Message();
   244     IGN_UTILS_IMPL_PTR(dataPtr)
 
A error occured while trying to resolve a URI. 
 
A link has invalid inertia. 
 
A duplicate name was found for an element where unique names are required. 
 
A joint has an invalid child link. 
 
This error indicates that an SDF attribute is invalid. 
 
The pose relative-to graph contains a cycle. 
 
The frame attached-to graph contains a cycle. 
 
A filesystem directory does not exist. 
 
This error indicates that an SDF element is invalid. 
 
Indicates that a DOM object tried to read a nested model. 
 
friend std::ostream & operator<<(std::ostream &_out, const sdf::Error &_err)
Output operator for an error. 
Definition: Error.hh:213
 
ErrorCode
Set of error codes. 
Definition: Error.hh:46
 
Indicates that reading an SDF file failed. 
 
Indicates an attribute was included that is not part of the sdf spec. 
 
The specified placement frame is invalid. 
 
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported. 
Definition: system_util.hh:41
 
The pose relative-to value does not match the name of an existing frame in the current scope...
 
The frame attached-to value does not match the name of an existing frame in the current scope...
 
The provided version has been deprecated or it is pre-versioning. 
 
Indicates that an incorrect SDF element type was encountered. 
 
A reserved name was used in an entity name attribute. 
 
Indicates that a required SDF attribute is missing. 
 
Indicates that reading an SDF string failed. 
 
The pose relative-to graph has an internal error. 
 
A joint has the same link specified as parent and child. 
 
This error indicates that an SDF element is deprecated. 
 
This error indicates that an SDF attribute is deprecated. 
 
namespace for Simulation Description Format parser 
Definition: Actor.hh:33
 
A model with an invalid canonical link. 
 
The frame attached-to graph has an internal error. 
 
Indicates that a required SDF element is missing. 
 
A joint has an invalid parent link.