Class USBException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
USBStallException, USBTimeoutException

public class USBException extends RuntimeException
USB exception, thrown if an operation with USB devices fails.
See Also:
  • Constructor Details

    • USBException

      public USBException(String message)
      Creates a new instance with a message.
      Parameters:
      message - the message
    • USBException

      public USBException(String message, int errorCode)
      Creates a new instance with a message and an error code.
      Parameters:
      message - the message
      errorCode - the error code
    • USBException

      public USBException(String message, Throwable cause)
      Creates a new instance with a message and a causal exception.
      Parameters:
      message - the message
      cause - the causal exception
  • Method Details

    • errorCode

      public int errorCode()
      Gets the error code.
      Returns:
      the error code