Go to the documentation of this file.
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,
104 IGN_UTILS_IMPL_PTR(dataPtr)
122 const std::string _msg);
145 const std::string _expr,
147 const std::string _function,
149 const std::string _msg =
"");
std::string GetErrorStr() const
Return the error string.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
Class for generating exceptions.
Definition: Exception.hh:48
Class for generating Exceptions which come from sdf assertions. They include information about the as...
Definition: Exception.hh:133
#define SDFORMAT_VISIBLE
Definition: system_util.hh:41
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:97
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:111