BHMotorException Class Reference

#include <bhmotor.h>

Inheritance diagram for BHMotorException:

Inheritance graph
[legend]
Collaboration diagram for BHMotorException:

Collaboration graph
[legend]

Public Types

enum  error { EXCP_VALUE_OUT_OF_RANGE, EXCP_SPEED_OUT_OF_RANGE, EXCP_POSITION_OUT_OF_RANGE }
 EXCP_POSITION_OUT_OF_RANGE
 EXCP_SPEED_OUT_OF_RANGE
 EXCP_VALUE_OUT_OF_RANGE

Public Member Functions

 BHMotorException (const error e)
bool operator== (error e)
const void show ()

Friends

std::ostream & operator<< (std::ostream &os, const BHMotorException &e)

Detailed Description

Class for BHMotor-Exceptions.

An exception of this type is thrown if an operation on a motor object fails.

Examples:

main_compliantfingers.cc.


Member Enumeration Documentation

enum BHMotorException::error

Defines the different errors.

Enumerator:
EXCP_VALUE_OUT_OF_RANGE  Value out of range.
EXCP_SPEED_OUT_OF_RANGE  Speed value out of range.
EXCP_POSITION_OUT_OF_RANGE  Position value out of range.


Constructor & Destructor Documentation

BHMotorException::BHMotorException ( const error  e  )  [inline]

Constructor

Here is the call graph for this function:


Member Function Documentation

bool BHMotorException::operator== ( error  e  )  [inline]

Operator for comparing the error. Holds the error.

const void BHMotorException::show (  )  [inline]

Prints out the error message.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const BHMotorException e 
) [friend]

Operator for error message output.


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

tams Tim Baier bhandlib v0.25
Generated Wed Aug 16 15:00:01 2006 by doxygen 1.4.7