HokuyoAIST  3.0.2
Public Member Functions | Protected Attributes | List of all members
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]

Public Member Functions

 ResponseError (char const *const error, char const *const cmd)
 Response error constructor. More...
 
 ResponseError (ResponseError const &rhs)
 
virtual char const *const error_code () const throw ()
 Get the two-byte error code as a non-null-terminated array. More...
 
virtual char const *const cmd_code () const throw ()
 Get the two-byte command code as a non-null-terminated array. More...
 
- Public Member Functions inherited from hokuyoaist::ProtocolError
 ProtocolError (unsigned int desc_code)
 Protocol error constructor. More...
 
 ProtocolError (unsigned int desc_code, char const *error_type)
 
virtual ~ProtocolError () throw ()
 
- Public Member Functions inherited from hokuyoaist::RuntimeError
 RuntimeError (unsigned int desc_code)
 Runtime error constructor. More...
 
 RuntimeError (unsigned int desc_code, char const *error_type)
 
virtual ~RuntimeError () throw ()
 
- Public Member Functions inherited from hokuyoaist::BaseError
 BaseError (unsigned int desc_code, char const *error_type)
 Hokuyo error constructor. More...
 
 BaseError (BaseError const &rhs)
 
virtual ~BaseError () throw ()
 
virtual unsigned int desc_code () const throw ()
 
virtual char const * error_type () const throw ()
 
virtual const char * what () const throw ()
 

Protected Attributes

char error_ [2]
 Error code as defined in SCIP2 (two bytes). More...
 
char cmd_ [2]
 Command that triggered the error, from SCIP2 (two bytes). More...
 
- Protected Attributes inherited from hokuyoaist::BaseError
unsigned int desc_code_
 Description code for use with the error string table. More...
 
std::string error_str_
 Formatted description of the error. More...
 
char error_type_ [32]
 String representation of the error. More...
 

Detailed Description

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

Definition at line 445 of file hokuyo_errors.h.

Constructor & Destructor Documentation

hokuyoaist::ResponseError::ResponseError ( char const *const  error,
char const *const  cmd 
)

Response error constructor.

Parameters
errorThe two-byte error code received.
cmdThe command that caused the error.
hokuyoaist::ResponseError::ResponseError ( ResponseError const &  rhs)

Member Function Documentation

virtual char const* const hokuyoaist::ResponseError::cmd_code ( ) const
throw (
)
inlinevirtual

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

Definition at line 460 of file hokuyo_errors.h.

virtual char const* const hokuyoaist::ResponseError::error_code ( ) const
throw (
)
inlinevirtual

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

Definition at line 456 of file hokuyo_errors.h.

Member Data Documentation

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

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

Definition at line 467 of file hokuyo_errors.h.

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

Error code as defined in SCIP2 (two bytes).

Definition at line 465 of file hokuyo_errors.h.


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