All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
sdf::Exception Class Reference

Class for generating exceptions. More...

#include <common/common.hh>

Inheritance diagram for sdf::Exception:
Inheritance graph
[legend]

Public Member Functions

 Exception ()
 Constructor. More...
 
 Exception (const char *_file, std::int64_t _line, std::string _msg)
 Default constructor. More...
 
 Exception (const Exception &_e)
 Copy constructor. More...
 
virtual ~Exception ()
 Destructor. More...
 
std::string GetErrorFile () const
 Return the error function. More...
 
std::string GetErrorStr () const
 Return the error string. More...
 
void Print () const
 Print the exception to std out. More...
 

Friends

std::ostream & operator<< (std::ostream &_out, const sdf::Exception &_err)
 stream insertion operator for Gazebo Error More...
 

Detailed Description

Class for generating exceptions.

Constructor & Destructor Documentation

sdf::Exception::Exception ( )

Constructor.

sdf::Exception::Exception ( const char *  _file,
std::int64_t  _line,
std::string  _msg 
)

Default constructor.

Parameters
[in]_fileFile name
[in]_lineLine number where the error occurred
[in]_msgError message
sdf::Exception::Exception ( const Exception _e)

Copy constructor.

Parameters
[in]_eException to copy.
virtual sdf::Exception::~Exception ( )
virtual

Destructor.

Member Function Documentation

std::string sdf::Exception::GetErrorFile ( ) const

Return the error function.

Returns
The error function name
std::string sdf::Exception::GetErrorStr ( ) const

Return the error string.

Returns
The error string
void sdf::Exception::Print ( ) const

Print the exception to std out.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  _out,
const sdf::Exception _err 
)
friend

stream insertion operator for Gazebo Error

Parameters
[in]_outthe output stream
[in]_errthe exception

The documentation for this class was generated from the following file: