javax.usb.event
Class UsbDeviceErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.usb.event.UsbDeviceEvent
          extended by javax.usb.event.UsbDeviceErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class UsbDeviceErrorEvent
extends UsbDeviceEvent

Indicates an error occurred on the Default Control Pipe.

This will be fired for all errors on the Default Control Pipe.

Author:
Dan Streetman, E. Michael Maximilien
See Also:
Serialized Form

Constructor Summary
UsbDeviceErrorEvent(UsbDevice source, UsbControlIrp irp)
          Constructor.
 
Method Summary
 UsbControlIrp getUsbControlIrp()
          Get the UsbControlIrp associated with this event.
 UsbException getUsbException()
          Get the associated UsbException.
 
Methods inherited from class javax.usb.event.UsbDeviceEvent
getUsbDevice
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsbDeviceErrorEvent

public UsbDeviceErrorEvent(UsbDevice source,
                           UsbControlIrp irp)
Constructor.

Parameters:
source - The UsbDevice.
irp - The UsbControlIrp associated with this error.
Method Detail

getUsbException

public UsbException getUsbException()
Get the associated UsbException.

Returns:
The associated UsbException.

getUsbControlIrp

public UsbControlIrp getUsbControlIrp()
Get the UsbControlIrp associated with this event.

Returns:
The UsbControlIrp.