Package ej.serial
Class SerialConfigurationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- ej.serial.SerialConfigurationException
-
- All Implemented Interfaces:
Serializable
public class SerialConfigurationException extends IOException
Signals that the requested serial line configuration is not supported by the serial port hardware.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,
IllegalArgumentExceptionis thrown for invalid (out-of-range) parameters, such as a non-positive baudrate or databits less than 5.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
SerialConfigurationException
public SerialConfigurationException(String message)
Constructs a new exception with the specified detail message.- Parameters:
message- the detail message.
-
SerialConfigurationException
public SerialConfigurationException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.- Parameters:
message- the detail message.cause- the cause.
-
SerialConfigurationException
public SerialConfigurationException(Throwable cause)
Constructs a new exception with the specified cause.- Parameters:
cause- the cause.
-
-