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

Class for generating exceptions. More...

#include <Exception.hh>

Public Member Functions

 Exception ()
 Constructor.
 
 Exception (const char *file, int line, std::string msg)
 Default constructor.
 
virtual ~Exception ()
 Destructor.
 
std::string GetErrorFile () const
 Return the error function.
 
std::string GetErrorStr () const
 Return the error string.
 

Friends

std::ostream & operator<< (std::ostream &_out, const gazebo::common::Exception &_err)
 stream insertion operator for Gazebo Error
 

Detailed Description

Class for generating exceptions.

Constructor & Destructor Documentation

gazebo::common::Exception::Exception ( )

Constructor.

gazebo::common::Exception::Exception ( const char *  file,
int  line,
std::string  msg 
)

Default constructor.

Parameters
[in]fileFile name
[in]lineLine number where the error occurred
[in]msgError message
virtual gazebo::common::Exception::~Exception ( )
virtual

Destructor.

Member Function Documentation

std::string gazebo::common::Exception::GetErrorFile ( ) const

Return the error function.

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

Return the error string.

Returns
The error string

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  _out,
const gazebo::common::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: