Class SerialDeviceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SerialDeviceException
    extends java.lang.Exception
    A exception used to indicate that a serial device communication problem occurred.
    Author:
    $Id: 6a95abf56ab516ba7b0fb5b0d779db86ec840ca6 $
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int PORT_IN_USE
      The port in use.
      static int UNKNOWN
      The reason is unknown.
      static int UNSUPPORTED_OPERATION
      The operation is unsupported.
    • Constructor Summary

      Constructors 
      Constructor Description
      SerialDeviceException​(int type, java.lang.String message)
      Creates a SerialDeviceException with the specified type and message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getType()
      Returns the type for this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • UNSUPPORTED_OPERATION

        public static final int UNSUPPORTED_OPERATION
        The operation is unsupported.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SerialDeviceException

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

      • getType

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