HokuyoAIST 3.0.2
hokuyoaist::Scip1ResponseError Class Reference

Bad response error (SCIP1 version) More...

#include <hokuyoaist/hokuyo_errors.h>

Inheritance diagram for hokuyoaist::Scip1ResponseError:
Collaboration diagram for hokuyoaist::Scip1ResponseError:

Public Member Functions

 Scip1ResponseError (char error, char cmd)
 Response error constructor.
 
 Scip1ResponseError (Scip1ResponseError const &rhs)
 
virtual char error_code () const throw ()
 Get the one-byte error code.
 
virtual char cmd_code () const throw ()
 Get the one-byte command code.
 
- Public Member Functions inherited from hokuyoaist::ProtocolError
 ProtocolError (unsigned int desc_code)
 Protocol error constructor.
 
 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.
 
 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.
 
 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_
 Error code as defined in SCIP2 (two bytes).
 
char cmd_
 Command that triggered the error, from SCIP2 (two bytes).
 
- Protected Attributes inherited from hokuyoaist::BaseError
unsigned int desc_code_
 Description code for use with the error string table.
 
std::string error_str_
 Formatted description of the error.
 
char error_type_ [32]
 String representation of the error.
 

Detailed Description

Bad response error (SCIP1 version)

Definition at line 470 of file hokuyo_errors.h.

Constructor & Destructor Documentation

◆ Scip1ResponseError() [1/2]

hokuyoaist::Scip1ResponseError::Scip1ResponseError ( char error,
char cmd )

Response error constructor.

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

◆ Scip1ResponseError() [2/2]

hokuyoaist::Scip1ResponseError::Scip1ResponseError ( Scip1ResponseError const & rhs)

Member Function Documentation

◆ cmd_code()

virtual char hokuyoaist::Scip1ResponseError::cmd_code ( ) const
throw ( )
inlinevirtual

Get the one-byte command code.

Definition at line 484 of file hokuyo_errors.h.

◆ error_code()

virtual char hokuyoaist::Scip1ResponseError::error_code ( ) const
throw ( )
inlinevirtual

Get the one-byte error code.

Definition at line 480 of file hokuyo_errors.h.

Member Data Documentation

◆ cmd_

char hokuyoaist::Scip1ResponseError::cmd_
protected

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

Definition at line 491 of file hokuyo_errors.h.

◆ error_

char hokuyoaist::Scip1ResponseError::error_
protected

Error code as defined in SCIP2 (two bytes).

Definition at line 489 of file hokuyo_errors.h.


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