javax.usb
Class UsbPlatformException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.usb.UsbException
              extended byjavax.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

Field Summary
protected  int errorCode
           
protected  java.lang.Exception platformException
           
 
Fields inherited from class java.lang.Exception
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

platformException

protected java.lang.Exception platformException

errorCode

protected int errorCode
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.