Go to the documentation of this file.
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;
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 =
"");
Exception(const char *_file, std::int64_t _line, std::string _msg)
Default constructor.
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:101
std::string GetErrorFile() const
Return the error function.
namespace for Simulation Description Format parser
Definition: Console.hh:36
void Print() const
Print the exception to std out.
virtual ~AssertionInternalError()
Destructor.
std::string GetErrorStr() const
Return the error string.
virtual ~Exception()
Destructor.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
AssertionInternalError(const char *_file, std::int64_t _line, const std::string _expr, const std::string _function, const std::string _msg="")
Constructor for assertions.
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition: Exception.hh:86
Class for generating Exceptions which come from sdf assertions. They include information about the as...
Definition: Exception.hh:122
InternalError(const char *_file, std::int64_t _line, const std::string _msg)
Default constructor.
Class for generating exceptions.
Definition: Exception.hh:52
Exception(const Exception &_e)
Copy constructor.
virtual ~InternalError()
Destructor.
InternalError()
Constructor.