Robotics Library  0.7.0
Public Types | Public Member Functions | Private Attributes | List of all members
rl::hal::WeissException Class Reference

#include <WeissException.h>

Inheritance diagram for rl::hal::WeissException:
Inheritance graph
[legend]

Public Types

enum  Code {
  CODE_SUCCESS = 0, CODE_NOT_AVAILABLE = 1, CODE_NO_SENSOR = 2, CODE_NOT_INITIALIZED = 3,
  CODE_ALREADY_RUNNING = 4, CODE_FEATURE_NOT_SUPPORTED = 5, CODE_INCONSISTENT_DATA = 6, CODE_TIMEOUT = 7,
  CODE_READ_ERROR = 8, CODE_WRITE_ERROR = 9, CODE_INSUFFICIENT_RESOURCES = 10, CODE_CHECKSUM_ERROR = 11,
  CODE_NO_PARAM_EXPECTED = 12, CODE_NOT_ENOUGH_PARAMS = 13, CODE_COMMAND_UNKNOWN = 14, CODE_COMMAND_FORMAT_ERROR = 15,
  CODE_ACCESS_DENIED = 16, CODE_ALREADY_OPEN = 17, CODE_COMMAND_FAILED = 18, CODE_COMMAND_ABORTED = 19,
  CODE_INVALID_HANDLE = 20, CODE_NOT_FOUND = 21, CODE_NOT_OPEN = 22, CODE_IO_ERROR = 23,
  CODE_INVALID_PARAMETER = 24, CODE_INDEX_OUT_OF_BOUNDS = 25, CODE_COMMAND_PENDING = 26, CODE_OVERRUN = 27,
  CODE_RANGE_ERROR = 28, CODE_AXIS_BLOCKED = 29, CODE_FILE_EXISTS = 30
}
 

Public Member Functions

 WeissException (const Code &code)
 
virtual ~WeissException () throw ()
 
Code getCode () const
 
virtual const char * what () const throw ()
 
- Public Member Functions inherited from rl::hal::DeviceException
 DeviceException (const ::std::string &what_arg)
 
 DeviceException (const int &errnum)
 
virtual ~DeviceException () throw ()
 
- Public Member Functions inherited from rl::hal::Exception
 Exception (const ::std::string &what_arg)
 
 Exception (const int &errnum)
 
virtual ~Exception () throw ()
 

Private Attributes

Code code
 

Additional Inherited Members

- Static Public Member Functions inherited from rl::hal::Exception
::std::string strerror (const int &errnum)
 

Member Enumeration Documentation

◆ Code

Enumerator
CODE_SUCCESS 
CODE_NOT_AVAILABLE 
CODE_NO_SENSOR 
CODE_NOT_INITIALIZED 
CODE_ALREADY_RUNNING 
CODE_FEATURE_NOT_SUPPORTED 
CODE_INCONSISTENT_DATA 
CODE_TIMEOUT 
CODE_READ_ERROR 
CODE_WRITE_ERROR 
CODE_INSUFFICIENT_RESOURCES 
CODE_CHECKSUM_ERROR 
CODE_NO_PARAM_EXPECTED 
CODE_NOT_ENOUGH_PARAMS 
CODE_COMMAND_UNKNOWN 
CODE_COMMAND_FORMAT_ERROR 
CODE_ACCESS_DENIED 
CODE_ALREADY_OPEN 
CODE_COMMAND_FAILED 
CODE_COMMAND_ABORTED 
CODE_INVALID_HANDLE 
CODE_NOT_FOUND 
CODE_NOT_OPEN 
CODE_IO_ERROR 
CODE_INVALID_PARAMETER 
CODE_INDEX_OUT_OF_BOUNDS 
CODE_COMMAND_PENDING 
CODE_OVERRUN 
CODE_RANGE_ERROR 
CODE_AXIS_BLOCKED 
CODE_FILE_EXISTS 

Constructor & Destructor Documentation

◆ WeissException()

rl::hal::WeissException::WeissException ( const Code code)

◆ ~WeissException()

rl::hal::WeissException::~WeissException ( )
throw (
)
virtual

Member Function Documentation

◆ getCode()

WeissException::Code rl::hal::WeissException::getCode ( ) const

◆ what()

const char * rl::hal::WeissException::what ( ) const
throw (
)
virtual

Member Data Documentation

◆ code

Code rl::hal::WeissException::code
private

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