rec::robotino::api2 C++ interface
Public Member Functions | List of all members
rec::robotino::api2::RobotinoException Class Reference

An extended exception class used in all rec::robotino::api2 classes. More...

#include <RobotinoException.h>

Inheritance diagram for rec::robotino::api2::RobotinoException:

Public Member Functions

 RobotinoException (const char *message)
 Creates a new Exception with a given text message. More...
 
 RobotinoException (const std::exception &cause)
 Creates a new Exception with a given text message. More...
 
virtual ~RobotinoException () throw ()
 
virtual const char * what () const throw ()
 Return the descriptive text message. More...
 

Detailed Description

An extended exception class used in all rec::robotino::api2 classes.

Usually gets thrown if a used communication object is invalid, but there are other reasons, too, so check the error message.

Constructor & Destructor Documentation

rec::robotino::api2::RobotinoException::RobotinoException ( const char *  message)
inline

Creates a new Exception with a given text message.

Parameters
messageA text message describing the reason of the exception.
See also
what
rec::robotino::api2::RobotinoException::RobotinoException ( const std::exception &  cause)
inline

Creates a new Exception with a given text message.

Parameters
causeA text message describing the reason of the exception.
See also
what
virtual rec::robotino::api2::RobotinoException::~RobotinoException ( )
throw (
)
inlinevirtual

Destructor.

Member Function Documentation

virtual const char* rec::robotino::api2::RobotinoException::what ( ) const
throw (
)
inlinevirtual

Return the descriptive text message.

Overloaded from std::exception.

Returns
The description of the reason, why this exception was thrown (in English).

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