HokuyoAIST  3.0.1
Public Member Functions | Protected Attributes | List of all members
hokuyoaist::ChecksumError Class Reference

Bad checksum error. More...

#include <hokuyoaist/hokuyo_errors.h>

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

Public Member Functions

 ChecksumError (int expected, int calculated)
 Checksum error constructor.
 ChecksumError (ChecksumError const &rhs)
virtual int expected () const throw ()
virtual int calculated () const throw ()
const char * what () 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 ()

Protected Attributes

int expected_
 Expected checksum value.
int calculated_
 Calculated checksum value.

Detailed Description

Bad checksum error.

Definition at line 349 of file hokuyo_errors.h.

Constructor & Destructor Documentation

hokuyoaist::ChecksumError::ChecksumError ( int  expected,
int  calculated 
)
inline

Checksum error constructor.

Parameters
expectedThe expected checksum.
calculatedThe calculated checksum.

Definition at line 356 of file hokuyo_errors.h.

hokuyoaist::ChecksumError::ChecksumError ( ChecksumError const &  rhs)
inline

Definition at line 360 of file hokuyo_errors.h.

Member Function Documentation

virtual int hokuyoaist::ChecksumError::calculated ( ) const throw ()
inlinevirtual

Definition at line 368 of file hokuyo_errors.h.

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

Definition at line 365 of file hokuyo_errors.h.

const char* hokuyoaist::ChecksumError::what ( ) throw ()
virtual

Reimplemented from hokuyoaist::BaseError.

Member Data Documentation

int hokuyoaist::ChecksumError::calculated_
protected

Calculated checksum value.

Definition at line 377 of file hokuyo_errors.h.

int hokuyoaist::ChecksumError::expected_
protected

Expected checksum value.

Definition at line 375 of file hokuyo_errors.h.


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