18 #ifndef _SDF_EXCEPTION_HH_
19 #define _SDF_EXCEPTION_HH_
35 #define sdfthrow(msg) {std::ostringstream throwStream;\
36 throwStream << msg << std::endl << std::flush;\
37 throw sdf::Exception(__FILE__, __LINE__, throwStream.str()); }
39 class ExceptionPrivate;
61 public: std::string GetErrorFile()
const;
65 public: std::string GetErrorStr()
const;
68 public:
void Print()
const;
74 public:
friend std::ostream &
operator<<(std::ostream& _out,
98 const std::string _msg);
120 const std::string _expr,
121 const std::string _function,
122 const std::string _msg =
"");
Definition: ExceptionPrivate.hh:28
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:74
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:88
Class for generating exceptions.
Definition: Exception.hh:43
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
std::string GetErrorStr() const
Return the error string.
Class for generating Exceptions which come from sdf assertions.
Definition: Exception.hh:109