HokuyoAIST 3.0.2
hokuyoaist::LineLengthError Class Reference

Incorrect line length error. More...

#include <hokuyoaist/hokuyo_errors.h>

Inheritance diagram for hokuyoaist::LineLengthError:
Collaboration diagram for hokuyoaist::LineLengthError:

Public Member Functions

 LineLengthError (int length, int expected)
 Line length error constructor.
 
 LineLengthError (LineLengthError const &rhs)
 
virtual int length () const throw ()
 
virtual int expected () const throw ()
 
- 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

int length_
 The received line length.
 
int expected_
 The expected line length.
 
- 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

Incorrect line length error.

Definition at line 568 of file hokuyo_errors.h.

Constructor & Destructor Documentation

◆ LineLengthError() [1/2]

hokuyoaist::LineLengthError::LineLengthError ( int length,
int expected )

Line length error constructor.

Parameters
lengthThe number of bytes received.
expectedThe expected length of the line.

◆ LineLengthError() [2/2]

hokuyoaist::LineLengthError::LineLengthError ( LineLengthError const & rhs)

Member Function Documentation

◆ expected()

virtual int hokuyoaist::LineLengthError::expected ( ) const
throw ( )
inlinevirtual

Definition at line 581 of file hokuyo_errors.h.

◆ length()

virtual int hokuyoaist::LineLengthError::length ( ) const
throw ( )
inlinevirtual

Definition at line 578 of file hokuyo_errors.h.

Member Data Documentation

◆ expected_

int hokuyoaist::LineLengthError::expected_
protected

The expected line length.

Definition at line 588 of file hokuyo_errors.h.

◆ length_

int hokuyoaist::LineLengthError::length_
protected

The received line length.

Definition at line 586 of file hokuyo_errors.h.


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