public class SerialConfigurationException extends IOException
The parameters themselves are the cause of the failure: the hardware or driver cannot support this combination of values, regardless of when the call is made. Retrying with the same parameters will always fail; the correct response is to choose different parameters.
In contrast, IllegalArgumentException is thrown for invalid (out-of-range) parameters,
such as a non-positive baudrate or databits less than 5.
| Constructor and Description |
|---|
SerialConfigurationException(String message)
Constructs a new exception with the specified detail message.
|
SerialConfigurationException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
SerialConfigurationException(Throwable cause)
Constructs a new exception with the specified cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toStringpublic SerialConfigurationException(String message)
message - the detail message.public SerialConfigurationException(String message, Throwable cause)
message - the detail message.cause - the cause.public SerialConfigurationException(Throwable cause)
cause - the cause.