Top Description Fields Constructors Methods
javax.usb

public Class UsbPlatformException

extends UsbException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
protected int
protected Exception

Constructor Summary

AccessConstructor and Description
public
UsbPlatformException()

Constructor.

public
UsbPlatformException(String
The detail message.
s
)

Constructor.

public
UsbPlatformException(int
The error code.
e
)

Constructor.

public
UsbPlatformException(Exception
The platform Exception.
pE
)

Constructor.

public
UsbPlatformException(String
The detail message.
s
,
int
The error code.
e
)

Constructor.

public
UsbPlatformException(String
The detail message.
s
,
Exception
The platform Exception.
pE
)

Constructor.

public
UsbPlatformException(int
The error code.
e
,
Exception
The platform Exception.
pE
)

Constructor.

public
UsbPlatformException(String
The detail message.
s
,
int
The error code.
e
,
Exception
The platform Exception.
pE
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The platform error code.
getErrorCode
()

Get the platform error code.

public Exception

Returns:

The platform Exception, or null.
getPlatformException
()

Get the platform Exception.

Field Detail

errorCodeback to summary
protected int errorCode
platformExceptionback to summary
protected Exception platformException

Constructor Detail

UsbPlatformExceptionback to summary
public UsbPlatformException()

Constructor.

UsbPlatformExceptionback to summary
public UsbPlatformException(String s)

Constructor.

Parameters
s:String

The detail message.

UsbPlatformExceptionback to summary
public UsbPlatformException(int e)

Constructor.

Parameters
e:int

The error code.

UsbPlatformExceptionback to summary
public UsbPlatformException(Exception pE)

Constructor.

Parameters
pE:Exception

The platform Exception.

UsbPlatformExceptionback to summary
public UsbPlatformException(String s, int e)

Constructor.

Parameters
s:String

The detail message.

e:int

The error code.

UsbPlatformExceptionback to summary
public UsbPlatformException(String s, Exception pE)

Constructor.

Parameters
s:String

The detail message.

pE:Exception

The platform Exception.

UsbPlatformExceptionback to summary
public UsbPlatformException(int e, Exception pE)

Constructor.

Parameters
e:int

The error code.

pE:Exception

The platform Exception.

UsbPlatformExceptionback to summary
public UsbPlatformException(String s, int e, Exception pE)

Constructor.

Parameters
s:String

The detail message.

e:int

The error code.

pE:Exception

The platform Exception.

Method Detail

getErrorCodeback to summary
public int getErrorCode()

Get the platform error code.

Returns:int

The platform error code.

getPlatformExceptionback to summary
public Exception getPlatformException()

Get the platform Exception.

Returns:Exception

The platform Exception, or null.