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 =
"");
virtual ~AssertionInternalError()
Destructor.
AssertionInternalError(const char *_file, std::int64_t _line, const std::string _expr, const std::string _function, const std::string _msg="")
Constructor for assertions.
Class for generating exceptions.
Definition Exception.hh:52
Exception(const char *_file, std::int64_t _line, std::string _msg)
Default constructor.
Exception(const Exception &_e)
Copy constructor.
std::string GetErrorStr() const
Return the error string.
void Print() const
Print the exception to std out.
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error
Definition Exception.hh:86
virtual ~Exception()
Destructor.
std::string GetErrorFile() const
Return the error function.
InternalError(const char *_file, std::int64_t _line, const std::string _msg)
Default constructor.
virtual ~InternalError()
Destructor.
InternalError()
Constructor.
namespace for Simulation Description Format parser
Definition Console.hh:36
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:48