HokuyoAIST 3.0.2
hokuyoaist::BaseError Class Reference

General error class. More...

#include <hokuyoaist/hokuyo_errors.h>

Inheritance diagram for hokuyoaist::BaseError:
Collaboration diagram for hokuyoaist::BaseError:

Public Member Functions

 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

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

General error class.

Definition at line 65 of file hokuyo_errors.h.

Constructor & Destructor Documentation

◆ BaseError() [1/2]

hokuyoaist::BaseError::BaseError ( unsigned int desc_code,
char const * error_type )

Hokuyo error constructor.

Parameters
desc_codeIndex into the error descriptions string table.
error_typeThe error as a string.

◆ BaseError() [2/2]

hokuyoaist::BaseError::BaseError ( BaseError const & rhs)

◆ ~BaseError()

virtual hokuyoaist::BaseError::~BaseError ( )
throw ( )
inlinevirtual

Definition at line 75 of file hokuyo_errors.h.

Member Function Documentation

◆ desc_code()

virtual unsigned int hokuyoaist::BaseError::desc_code ( ) const
throw ( )
inlinevirtual

Definition at line 77 of file hokuyo_errors.h.

◆ error_type()

virtual char const * hokuyoaist::BaseError::error_type ( ) const
throw ( )
inlinevirtual

Definition at line 80 of file hokuyo_errors.h.

◆ what()

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

Member Data Documentation

◆ desc_code_

unsigned int hokuyoaist::BaseError::desc_code_
protected

Description code for use with the error string table.

Definition at line 87 of file hokuyo_errors.h.

◆ error_str_

std::string hokuyoaist::BaseError::error_str_
protected

Formatted description of the error.

Definition at line 90 of file hokuyo_errors.h.

◆ error_type_

char hokuyoaist::BaseError::error_type_[32]
protected

String representation of the error.

Definition at line 93 of file hokuyo_errors.h.


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