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;
   106                                             const sdf::Exception &_err)
   108       return _out << _err.GetErrorStr();
   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
 
friend std::ostream & operator<<(std::ostream &_out, const sdf::Exception &_err)
stream insertion operator for Gazebo Error 
Definition: Exception.hh:105
 
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported. 
Definition: system_util.hh:48
 
Class for generating Internal Gazebo Errors: those errors which should never happend and represent pr...
Definition: Exception.hh:119
 
namespace for Simulation Description Format parser 
Definition: Actor.hh:32
 
Class for generating Exceptions which come from sdf assertions. 
Definition: Exception.hh:140