Class PlccomMqttConnectException

    • Constructor Detail

      • PlccomMqttConnectException

        public PlccomMqttConnectException​(String message)
        Creates a connection exception with a diagnostic message.
        Parameters:
        message - human-readable connection failure description
      • PlccomMqttConnectException

        public PlccomMqttConnectException​(String message,
                                          Throwable cause)
        Creates a connection exception with a diagnostic message and root cause.
        Parameters:
        message - human-readable connection failure description
        cause - underlying failure, or null when the broker supplied only an MQTT reason code
      • PlccomMqttConnectException

        public PlccomMqttConnectException​(String message,
                                          Throwable cause,
                                          boolean protocolVersionRejected)
        Creates a connection exception and records whether protocol fallback is allowed.
        Parameters:
        message - human-readable connection failure description
        cause - underlying failure, or null when no lower-level cause is available
        protocolVersionRejected - true when the broker explicitly rejected the MQTT protocol version
    • Method Detail

      • isProtocolVersionRejected

        public boolean isProtocolVersionRejected()
        Returns whether the broker explicitly rejected the MQTT protocol version.
        Returns:
        true when AUTO may try another protocol version