18 #ifndef SDF_EXCEPTION_HH_ 19 #define SDF_EXCEPTION_HH_ 27 #include <ignition/utils/ImplPtr.hh> 28 #include <sdf/sdf_config.h> 34 inline namespace SDF_VERSION_NAMESPACE {
42 #define sdfthrow(msg) {std::ostringstream throwStream;\ 43 throwStream << msg << std::endl << std::flush;\ 44 throw sdf::Exception(__FILE__, __LINE__, throwStream.str()); } 84 public: std::string GetErrorFile()
const;
88 public: std::string GetErrorStr()
const;
91 public:
void Print()
const;
97 public:
friend std::ostream &
operator<<(std::ostream& _out,
98 const sdf::Exception &_err)
100 return _out << _err.GetErrorStr();
104 IGN_UTILS_IMPL_PTR(dataPtr)
121 const std::string _msg);
143 const std::string _expr,
144 const std::string _function,
145 const std::string _msg =
"");
Class for generating Exceptions which come from sdf assertions.
Definition: Exception.hh:132
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:97
Class for generating exceptions.
Definition: Exception.hh:48
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:41
namespace for Simulation Description Format parser
Definition: Actor.hh:33
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:111