com.teravation.labjack
Class LabJackException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.teravation.labjack.LabJackException
All Implemented Interfaces:
java.io.Serializable

public class LabJackException
extends java.lang.Exception

This is the standard exception thrown from all LabJack operations. The errorcode details the type of exception that occurred. Internationalized error messages are loaded from the appropriate Locale's .properties file.

Copyright © 2003-2004 Teravation. All rights reserved.

Version:
4.0
Author:
Chris Reigrut
See Also:
Serialized Form

Constructor Summary
LabJackException()
          Constructor (empty)
LabJackException(int errorCode)
          Constructor (takes underlying error code)
LabJackException(java.lang.String s)
          Constructor (takes underlying error message)
 
Method Summary
 int getErrorCode()
          Returns the underlying error code for this exception.
 java.lang.String getLocalizedMessage()
          Returns the localized error message string of this exception.
 java.lang.String getMessage()
          Returns the error message string of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LabJackException

public LabJackException()
Constructor (empty)


LabJackException

public LabJackException(int errorCode)
Constructor (takes underlying error code)

Parameters:
errorCode - the underlying error code

LabJackException

public LabJackException(java.lang.String s)
Constructor (takes underlying error message)

Method Detail

getErrorCode

public int getErrorCode()
Returns the underlying error code for this exception.

Returns:
the underlying error code for this exception.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns the localized error message string of this exception.

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
the localized error message for this exception.

getMessage

public java.lang.String getMessage()
Returns the error message string of this exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message for this exception.