public class SerialException
extends java.lang.Exception
Constructor and Description |
---|
SerialException(java.lang.String portName,
java.lang.String methodName,
java.lang.String exceptionType)
Throws an exception if there is an error while trying to open, set, write or close a serial port.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExceptionType()
Fetches exception type associated with the most recent exception
|
java.lang.String |
getMethodName()
Fetches method name associated with the most recent exception
|
java.lang.String |
getPortName()
Fetches port name associated with the most recent exception
|
public SerialException(java.lang.String portName, java.lang.String methodName, java.lang.String exceptionType)
portName
- Name of port where exception occurredmethodName
- Name of method where exception occurredexceptionType
- Type of exceptionpublic java.lang.String getPortName()
public java.lang.String getMethodName()
public java.lang.String getExceptionType()