Public Member Functions | Friends
Exception Class Reference

Class for generating exceptions. More...

#include <Exception.hh>

List of all members.

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)
 Ostream operator for Gazebo Error.

Detailed Description

Class for generating exceptions.


Constructor & Destructor Documentation

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

Default constructor.

Parameters:
fileFile name
lineLine number where the error occurred
msgError message

Member Function Documentation

std::string GetErrorFile ( ) const

Return the error function.

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

Return the error string.

Returns:
The error string

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