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;
65 public: std::string GetErrorFile()
const;
69 public: std::string GetErrorStr()
const;
72 public:
void Print()
const;
78 public:
friend std::ostream &
operator<<(std::ostream& _out,
102 const std::string _msg);
124 const std::string _expr,
125 const std::string _function,
126 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:78
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:92
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:113