18 #ifndef _SDF_EXCEPTION_HH_
19 #define _SDF_EXCEPTION_HH_
33 #pragma warning(disable: 4251)
43 #define sdfthrow(msg) {std::ostringstream throwStream;\
44 throwStream << msg << std::endl << std::flush;\
45 throw sdf::Exception(__FILE__, __LINE__, throwStream.str()); }
47 class ExceptionPrivate;
73 public: std::string GetErrorFile()
const;
77 public: std::string GetErrorStr()
const;
80 public:
void Print()
const;
86 public:
friend std::ostream &
operator<<(std::ostream& _out,
93 private: std::unique_ptr<ExceptionPrivate> dataPtr;
110 const std::string _msg);
132 const std::string _expr,
133 const std::string _function,
134 const std::string _msg =
"");
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:86
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:100
Class for generating exceptions.
Definition: Exception.hh:51
#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:121