HokuyoAIST  3.0.1
Public Member Functions | Protected Attributes
hokuyoaist::ResponseError Class Reference

Bad response error - may be sent in response to any command. More...

#include <hokuyoaist/hokuyo_errors.h>

Inheritance diagram for hokuyoaist::ResponseError:
Inheritance graph
[legend]
Collaboration diagram for hokuyoaist::ResponseError:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ResponseError (char const *const error, char const *const cmd)
 Response error constructor.
 ResponseError (ResponseError const &rhs)
virtual char const *const error_code () const throw ()
 Get the two-byte error code as a non-null-terminated array.
virtual char const *const cmd_code () const throw ()
 Get the two-byte command code as a non-null-terminated array.
const char * what () throw ()

Protected Attributes

char error_ [2]
 Error code as defined in SCIP2 (two bytes).
char cmd_ [2]
 Command that triggered the error, from SCIP2 (two bytes).

Detailed Description

Bad response error - may be sent in response to any command.

Definition at line 460 of file hokuyo_errors.h.


Constructor & Destructor Documentation

hokuyoaist::ResponseError::ResponseError ( char const *const  error,
char const *const  cmd 
) [inline]

Response error constructor.

Parameters:
errorThe two-byte error code received.
cmdThe command that caused the error.

Definition at line 467 of file hokuyo_errors.h.

Definition at line 473 of file hokuyo_errors.h.


Member Function Documentation

virtual char const* const hokuyoaist::ResponseError::cmd_code ( ) const throw () [inline, virtual]

Get the two-byte command code as a non-null-terminated array.

Definition at line 487 of file hokuyo_errors.h.

virtual char const* const hokuyoaist::ResponseError::error_code ( ) const throw () [inline, virtual]

Get the two-byte error code as a non-null-terminated array.

Definition at line 483 of file hokuyo_errors.h.

const char* hokuyoaist::ResponseError::what ( ) throw () [virtual]

Reimplemented from hokuyoaist::BaseError.


Member Data Documentation

char hokuyoaist::ResponseError::cmd_[2] [protected]

Command that triggered the error, from SCIP2 (two bytes).

Definition at line 496 of file hokuyo_errors.h.

char hokuyoaist::ResponseError::error_[2] [protected]

Error code as defined in SCIP2 (two bytes).

Definition at line 494 of file hokuyo_errors.h.


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