Go to the documentation of this file.
18 #ifndef SDF_EXCEPTION_HH_
19 #define SDF_EXCEPTION_HH_
27 #include <gz/utils/ImplPtr.hh>
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 =
"");
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:97
namespace for Simulation Description Format parser
Definition: Actor.hh:34
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:25
Class for generating exceptions.
Definition: Exception.hh:48
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:111
std::string GetErrorStr() const
Return the error string.