Main Page   Alphabetical List   Compound List   File List   Compound Members  

LX200PortException Class Reference

A simple exception handling class. More...

#include <lx200.h>

List of all members.

Public Methods

 LX200PortException ()
 LX200PortException (int errorType)
const char * getError () const


Detailed Description

A simple exception handling class.

LX200PortException is a simple exception handling class that gets called whenever an exception is thrown. The class stores information relating to the error until the appropiate action is taken.

Author:
Jasem Mutlaq
Version:
0.1


Constructor & Destructor Documentation

LX200PortException::LX200PortException   [inline]
 

Default Constructor.

The default constructor should not be called normally unless the nature of the error is not understood. The constructor stores the errors as unknown.

LX200PortException::LX200PortException int    errorType [inline]
 

A Constructor.

The constructor stores the error message from a list of predefined messages. Currently, the error messages have the following identifiers:

0 Read Error
1 Write Error
2 LX200 read out status error
3 Failed to open serial port

Parameters:
errorType  Error message identifier.


Member Function Documentation

const char* LX200PortException::getError   const [inline]
 

Returns :
The error messsage stored in class.


The documentation for this class was generated from the following file:
Generated on Wed Nov 6 06:54:31 2002 for KTelescope by doxygen1.2.17