Package jssc
Class SerialPortTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- jssc.SerialPortTimeoutException
-
- All Implemented Interfaces:
Serializable
public class SerialPortTimeoutException extends Exception
- Author:
- scream3r
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerialPortTimeoutException(String portName, String methodName, int timeoutValue)Deprecated.SerialPortTimeoutException(SerialPort port, String methodName, int timeoutValue)Constructs a newSerialPortTimeoutException
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetMethodName()Gets the method name during execution of which the exception was calledSerialPortgetPort()Gets theSerialPortwhich threw the exceptionStringgetPortName()Deprecated.intgetTimeoutValue()Gets timeout value of which the exception was called-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SerialPortTimeoutException
public SerialPortTimeoutException(SerialPort port, String methodName, int timeoutValue)
Constructs a newSerialPortTimeoutException- Parameters:
port- Port which the exception occurred onmethodName- Method name which the exception occurred ontimeoutValue- Timeout value which the exception occurred on
-
SerialPortTimeoutException
@Deprecated public SerialPortTimeoutException(String portName, String methodName, int timeoutValue)
Deprecated.Constructs a newSerialPortTimeoutExceptionDeprecated: UseSerialPortTimeoutException(SerialPort, String, int)instead.- Parameters:
portName- Port name which the exception occurred onmethodName- Method name which the exception occurred ontimeoutValue- 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: UsegetPort().getName()instead.- Returns:
- Port name
-
getPort
public SerialPort getPort()
Gets theSerialPortwhich threw the exception- Returns:
SerialPortobject
-
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
-
-