Go to the documentation of this file.
18 #ifndef SDF_EXCEPTION_HH_
19 #define SDF_EXCEPTION_HH_
27 #include <sdf/sdf_config.h>
34 #pragma warning(disable: 4251)
40 inline namespace SDF_VERSION_NAMESPACE {
48 #define sdfthrow(msg) {std::ostringstream throwStream;\
49 throwStream << msg << std::endl << std::flush;\
50 throw sdf::Exception(__FILE__, __LINE__, throwStream.str()); }
52 class ExceptionPrivate;
92 public: std::string GetErrorFile()
const;
96 public: std::string GetErrorStr()
const;
99 public:
void Print()
const;
112 private: std::unique_ptr<ExceptionPrivate> dataPtr;
129 const std::string _msg);
151 const std::string _expr,
152 const std::string _function,
153 const std::string _msg =
"");
Class for generating exceptions.
Definition: Exception.hh:56
namespace for Simulation Description Format parser
Definition: Actor.hh:32
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:119
std::string GetErrorStr() const
Return the error string.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
Class for generating Exceptions which come from sdf assertions. They include information about the as...
Definition: Exception.hh:140
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:105