Classes | Namespaces | Enumerations | Functions
Error.hh File Reference
#include <iostream>
#include <string>
#include <optional>
#include <gz/utils/ImplPtr.hh>
#include <sdf/sdf_config.h>
#include "sdf/Console.hh"
#include "sdf/system_util.hh"

Go to the source code of this file.

Classes

class  sdf::SDF_VERSION_NAMESPACE::Error
 

Namespaces

 sdf
 namespace for Simulation Description Format parser
 
 sdf::SDF_VERSION_NAMESPACE
 
 sdf::SDF_VERSION_NAMESPACE::internal
 Internal namespace.
 

Enumerations

enum  sdf::SDF_VERSION_NAMESPACE::ErrorCode {
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::NONE = 0, sdf::SDF_VERSION_NAMESPACE::ErrorCode::FILE_READ, sdf::SDF_VERSION_NAMESPACE::ErrorCode::DUPLICATE_NAME, sdf::SDF_VERSION_NAMESPACE::ErrorCode::RESERVED_NAME,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::ATTRIBUTE_MISSING, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ATTRIBUTE_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ATTRIBUTE_DEPRECATED, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ATTRIBUTE_INCORRECT_TYPE,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::ELEMENT_MISSING, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ELEMENT_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ELEMENT_DEPRECATED, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ELEMENT_INCORRECT_TYPE,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::ELEMENT_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::URI_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::URI_LOOKUP, sdf::SDF_VERSION_NAMESPACE::ErrorCode::DIRECTORY_NONEXISTANT,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::MODEL_CANONICAL_LINK_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::MODEL_WITHOUT_LINK, sdf::SDF_VERSION_NAMESPACE::ErrorCode::NESTED_MODELS_UNSUPPORTED, sdf::SDF_VERSION_NAMESPACE::ErrorCode::LINK_INERTIA_INVALID,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::JOINT_CHILD_LINK_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::JOINT_PARENT_LINK_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::JOINT_PARENT_SAME_AS_CHILD, sdf::SDF_VERSION_NAMESPACE::ErrorCode::FRAME_ATTACHED_TO_INVALID,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::FRAME_ATTACHED_TO_CYCLE, sdf::SDF_VERSION_NAMESPACE::ErrorCode::FRAME_ATTACHED_TO_GRAPH_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::POSE_RELATIVE_TO_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::POSE_RELATIVE_TO_CYCLE,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::POSE_RELATIVE_TO_GRAPH_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::ROTATION_SNAP_CONFIG_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::STRING_READ, sdf::SDF_VERSION_NAMESPACE::ErrorCode::MODEL_PLACEMENT_FRAME_INVALID,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::VERSION_DEPRECATED, sdf::SDF_VERSION_NAMESPACE::ErrorCode::MERGE_INCLUDE_UNSUPPORTED, sdf::SDF_VERSION_NAMESPACE::ErrorCode::PARAMETER_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::UNKNOWN_PARAMETER_TYPE,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::FATAL_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::WARNING, sdf::SDF_VERSION_NAMESPACE::ErrorCode::JOINT_AXIS_EXPRESSED_IN_INVALID, sdf::SDF_VERSION_NAMESPACE::ErrorCode::CONVERSION_ERROR,
  sdf::SDF_VERSION_NAMESPACE::ErrorCode::PARSING_ERROR, sdf::SDF_VERSION_NAMESPACE::ErrorCode::XML_ERROR
}
 

Functions

void GZ_SDFORMAT_VISIBLE sdf::SDF_VERSION_NAMESPACE::internal::throwOrPrintError (sdf::Console::ConsoleStream &_out, const sdf::Error &_error)
 Prints the error to _out or throw using SDF_ASSERT depending on the ErrorCode in _error. More...