HokuyoAIST  3.0.2
Public Member Functions | Protected Attributes | List of all members
hokuyoaist::BaseError Class Reference

General error class. More...

#include <hokuyoaist/hokuyo_errors.h>

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

Public Member Functions

 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

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

General error class.

Definition at line 65 of file hokuyo_errors.h.

Constructor & Destructor Documentation

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.
hokuyoaist::BaseError::BaseError ( BaseError const &  rhs)
virtual hokuyoaist::BaseError::~BaseError ( )
throw (
)
inlinevirtual

Definition at line 75 of file hokuyo_errors.h.

Member Function Documentation

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

Definition at line 77 of file hokuyo_errors.h.

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

Definition at line 80 of file hokuyo_errors.h.

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

Member Data Documentation

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.

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

Formatted description of the error.

Definition at line 90 of file hokuyo_errors.h.

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: