edu.wpi.first.wpilibj.visa
Class VisaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.wpi.first.wpilibj.visa.VisaException
All Implemented Interfaces:
java.io.Serializable

public class VisaException
extends java.lang.Exception

Exception class which looks up visa error codes

Author:
dtjones
See Also:
Serialized Form

Constructor Summary
VisaException(java.lang.String function, int errorCode)
          Create a new VisaException
 
Method Summary
static java.lang.String lookUpCode(int errorCode)
           
static java.lang.String makeMessage(java.lang.String function, int errorCode)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisaException

public VisaException(java.lang.String function,
                     int errorCode)
Create a new VisaException

Parameters:
function - the name of the function which returned the status code
errorCode - the status code returned by the function
Method Detail

makeMessage

public static java.lang.String makeMessage(java.lang.String function,
                                           int errorCode)

lookUpCode

public static java.lang.String lookUpCode(int errorCode)