Package ej.serial

Class 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, IllegalArgumentException is thrown for invalid (out-of-range) parameters, such as a non-positive baudrate or databits less than 5.

    See Also:
    Serialized Form
    • 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.