com.acces.aiousb
Class OperationFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.acces.aiousb.OperationFailedException
All Implemented Interfaces:
java.io.Serializable

public class OperationFailedException
extends java.lang.RuntimeException

Class OperationFailedException is thrown whenever an operation attempted on a device fails. The message is either generated by this Java class library or consists of the string representation of an error code returned by the AIOUSB module.

See Also:
Serialized Form

Constructor Summary
OperationFailedException(int result)
          Constructs the exception from an AIOUSB module error code.
OperationFailedException(java.lang.String message)
          Constructs the exception from a simple string message.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationFailedException

public OperationFailedException(int result)
Constructs the exception from an AIOUSB module error code.

Parameters:
result - AIOUSB module result code.

OperationFailedException

public OperationFailedException(java.lang.String message)
Constructs the exception from a simple string message.

Parameters:
message - The text of the message.