22#ifndef _GAZEBO_EXCEPTION_HH_
23#define _GAZEBO_EXCEPTION_HH_
39 #define gzthrow(msg) {std::ostringstream throwStream;\
40 throwStream << msg << std::endl << std::flush;\
41 throw gazebo::common::Exception(__FILE__, __LINE__, throwStream.str()); }
73 private: std::string file;
79 private: std::string str;
84 public:
friend std::ostream &
operator<<(std::ostream &_out,
105 const std::string &_msg);
127 const std::string &_expr,
128 const std::string &_function,
129 const std::string &_msg =
"");
common
Definition FuelModelDatabase.hh:37
Class for generating Exceptions which come from gazebo assertions.
Definition Exception.hh:117
AssertionInternalError(const char *_file, int _line, const std::string &_expr, const std::string &_function, const std::string &_msg="")
Constructor for assertions.
virtual ~AssertionInternalError()
Destructor.
Class for generating exceptions.
Definition Exception.hh:46
friend std::ostream & operator<<(std::ostream &_out, const gazebo::common::Exception &_err)
stream insertion operator for Gazebo Error
Definition Exception.hh:84
void Print() const
Print the exception to std out.
std::string GetErrorFile() const
Return the error function.
virtual ~Exception()
Destructor.
std::string GetErrorStr() const
Return the error string.
Exception(const char *_file, int _line, std::string _msg)
Default constructor.
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition Exception.hh:96
InternalError(const char *_file, int _line, const std::string &_msg)
Default constructor.
virtual ~InternalError()
Destructor.
InternalError()
Constructor.
Forward declarations for the common classes.
Definition Animation.hh:27