javax.usb.event
Class UsbPipeErrorEvent

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

public class UsbPipeErrorEvent
extends UsbPipeEvent

Indicates an error occurred on the UsbPipe.

This will be fired for all errors on the UsbPipe.

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

Constructor Summary
UsbPipeErrorEvent(UsbPipe source, UsbException uE)
          Constructor.
UsbPipeErrorEvent(UsbPipe source, UsbIrp uI)
          Constructor.
 
Method Summary
 UsbException getUsbException()
          Get the associated UsbException.
 
Methods inherited from class javax.usb.event.UsbPipeEvent
getUsbIrp, getUsbPipe, hasUsbIrp
 
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

UsbPipeErrorEvent

public UsbPipeErrorEvent(UsbPipe source,
                         UsbException uE)
Constructor.

This should be used only if there is no UsbIrp associated with this event.

Parameters:
source - The UsbPipe.
uE - The UsbException.

UsbPipeErrorEvent

public UsbPipeErrorEvent(UsbPipe source,
                         UsbIrp uI)
Constructor.

Parameters:
source - The UsbPipe.
uI - The UsbIrp.
Method Detail

getUsbException

public UsbException getUsbException()
Get the associated UsbException.

Returns:
The associated UsbException.