javax.usb
Class UsbPlatformException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.usb.UsbException
              extended by javax.usb.UsbPlatformException
All Implemented Interfaces:
java.io.Serializable

public class UsbPlatformException
extends UsbException

Exception indicating a platform-specific UsbException.

This indicates an error occurred that is specific to the operating system or platform. This provides access to the specific error code and/or platform Exception.

Author:
Dan Streetman
See Also:
Serialized Form

Constructor Summary
UsbPlatformException()
          Constructor.
UsbPlatformException(java.lang.Exception pE)
          Constructor.
UsbPlatformException(int e)
          Constructor.
UsbPlatformException(int e, java.lang.Exception pE)
          Constructor.
UsbPlatformException(java.lang.String s)
          Constructor.
UsbPlatformException(java.lang.String s, java.lang.Exception pE)
          Constructor.
UsbPlatformException(java.lang.String s, int e)
          Constructor.
UsbPlatformException(java.lang.String s, int e, java.lang.Exception pE)
          Constructor.
 
Method Summary
 int getErrorCode()
          Get the platform error code.
 java.lang.Exception getPlatformException()
          Get the platform Exception.
 
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

UsbPlatformException

public UsbPlatformException()
Constructor.


UsbPlatformException

public UsbPlatformException(java.lang.String s)
Constructor.

Parameters:
s - The detail message.

UsbPlatformException

public UsbPlatformException(int e)
Constructor.

Parameters:
e - The error code.

UsbPlatformException

public UsbPlatformException(java.lang.Exception pE)
Constructor.

Parameters:
pE - The platform Exception.

UsbPlatformException

public UsbPlatformException(java.lang.String s,
                            int e)
Constructor.

Parameters:
s - The detail message.
e - The error code.

UsbPlatformException

public UsbPlatformException(java.lang.String s,
                            java.lang.Exception pE)
Constructor.

Parameters:
s - The detail message.
pE - The platform Exception.

UsbPlatformException

public UsbPlatformException(int e,
                            java.lang.Exception pE)
Constructor.

Parameters:
e - The error code.
pE - The platform Exception.

UsbPlatformException

public UsbPlatformException(java.lang.String s,
                            int e,
                            java.lang.Exception pE)
Constructor.

Parameters:
s - The detail message.
e - The error code.
pE - The platform Exception.
Method Detail

getPlatformException

public java.lang.Exception getPlatformException()
Get the platform Exception.

Returns:
The platform Exception, or null.

getErrorCode

public int getErrorCode()
Get the platform error code.

Returns:
The platform error code.