public final class LibUsbException extends RuntimeException
Constructor and Description |
---|
LibUsbException(int errorCode)
Constructs a libusb exception which just outputs the error code and
the error message from libusb.
|
LibUsbException(String message,
int errorCode)
Constructs a libusb exception which outputs the error code and
the error message from libusb together with a custom error message.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LibUsbException(int errorCode)
errorCode
- The error code.public LibUsbException(String message, int errorCode)
message
- The error message.errorCode
- The error code.Copyright © 2011–2018 usb4java Team. All rights reserved.