Class SerialDeviceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.service.serial.SerialDeviceException
All Implemented Interfaces:
Serializable

public class SerialDeviceException extends Exception
A exception used to indicate that a serial device communication problem occurred.
See Also:
  • Field Details

    • UNKNOWN

      public static final int UNKNOWN
      The reason is unknown.
      See Also:
    • PORT_IN_USE

      public static final int PORT_IN_USE
      The port in use.
      See Also:
    • UNSUPPORTED_OPERATION

      public static final int UNSUPPORTED_OPERATION
      The operation is unsupported.
      See Also:
  • Constructor Details

    • SerialDeviceException

      public SerialDeviceException(int type, String message)
      Creates a SerialDeviceException with the specified type and message.
      Parameters:
      type - The type for this exception.
      message - The message.
  • Method Details

    • getType

      public int getType()
      Returns the type for this exception.
      Returns:
      The type of this exception.