iio_v2
Class ErrorHandler

java.lang.Object
  extended by iio_v2.ErrorHandler

public class ErrorHandler
extends java.lang.Object


Constructor Summary
protected ErrorHandler(java.lang.String version, java.lang.String title, boolean[] errscope)
           
 
Method Summary
protected  void clearErrorLogFile()
          Clear out the current log file by creating a new file with headers only.
protected  void displayError(int errorCode)
          Generic Error Handler for all I/O Errors encountered in the IIO Application
Handles all I/O Error for this class.
protected  java.lang.String getMessage(int errnum)
          Get the string message associated with the numeric error number that was passed
protected  int getMessageCount()
          Get the error internal message count.
protected  boolean isValidMessageNumber(int errnum)
          See if the passed message number is a valid message number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandler

protected ErrorHandler(java.lang.String version,
                       java.lang.String title,
                       boolean[] errscope)
Method Detail

getMessage

protected java.lang.String getMessage(int errnum)
Get the string message associated with the numeric error number that was passed

Parameters:
errnum -
Returns:
Error Message as String

getMessageCount

protected int getMessageCount()
Get the error internal message count.

Returns:
int

isValidMessageNumber

protected boolean isValidMessageNumber(int errnum)
See if the passed message number is a valid message number.

Parameters:
errnum -
Returns:
boolean

displayError

protected void displayError(int errorCode)
Generic Error Handler for all I/O Errors encountered in the IIO Application
Handles all I/O Error for this class.

Parameters:
errorCode - int
Since:
Version 2.0 07/01/2008

clearErrorLogFile

protected void clearErrorLogFile()
Clear out the current log file by creating a new file with headers only.

Since:
Version 2.0 07/01/2008