Package jssc

Class SerialPortTimeoutException

    • Constructor Detail

      • SerialPortTimeoutException

        public SerialPortTimeoutException​(SerialPort port,
                                          String methodName,
                                          int timeoutValue)
        Constructs a new SerialPortTimeoutException
        Parameters:
        port - Port which the exception occurred on
        methodName - Method name which the exception occurred on
        timeoutValue - Timeout value which the exception occurred on
      • SerialPortTimeoutException

        @Deprecated
        public SerialPortTimeoutException​(String portName,
                                          String methodName,
                                          int timeoutValue)
        Deprecated.
        Constructs a new SerialPortTimeoutException Deprecated: Use SerialPortTimeoutException(SerialPort, String, int) instead.
        Parameters:
        portName - Port name which the exception occurred on
        methodName - Method name which the exception occurred on
        timeoutValue - Timeout value which the exception occurred on
        See Also:
        SerialPortTimeoutException(SerialPort, String, int)
    • Method Detail

      • getPortName

        @Deprecated
        public String getPortName()
        Deprecated.
        Getting port name during operation with which the exception was called Deprecated: Use getPort().getName() instead.
        Returns:
        Port name
      • getPort

        public SerialPort getPort()
        Gets the SerialPort which threw the exception
        Returns:
        SerialPort object
      • getMethodName

        public String getMethodName()
        Gets the method name during execution of which the exception was called
        Returns:
        Calling method name
      • getTimeoutValue

        public int getTimeoutValue()
        Gets timeout value of which the exception was called
        Returns:
        Calling method name