ztex
Class UsbException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ztex.UsbException
All Implemented Interfaces:
java.io.Serializable

public class UsbException
extends java.lang.Exception

Signals an USB error.

See Also:
Serialized Form

Constructor Summary
UsbException(org.usb4java.Device dev, java.lang.String msg)
          Constructs an instance from the given device and error message.
UsbException(org.usb4java.Device dev, java.lang.String msg, int errNum)
          Constructs an instance from the given device, error message and error number.
UsbException(java.lang.String msg)
          Constructs an instance from the given error message.
UsbException(java.lang.String msg, int errNum)
          Constructs an instance from error message and error number.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsbException

public UsbException(java.lang.String msg)
Constructs an instance from the given error message.

Parameters:
msg - The error message.

UsbException

public UsbException(org.usb4java.Device dev,
                    java.lang.String msg)
Constructs an instance from the given device and error message.

Parameters:
dev - The device.
msg - The error message.

UsbException

public UsbException(java.lang.String msg,
                    int errNum)
Constructs an instance from error message and error number.

Parameters:
msg - The error message.
errNum - The error number.

UsbException

public UsbException(org.usb4java.Device dev,
                    java.lang.String msg,
                    int errNum)
Constructs an instance from the given device, error message and error number.

Parameters:
dev - The device.
msg - The error message.
errNum - The error number.