Class MqttException

java.lang.Object
java.lang.Throwable
io.vertx.mqtt.MqttException
All Implemented Interfaces:
Serializable

public class MqttException extends Throwable
Exception raised with a specific reason code
See Also:
  • Field Details

    • MQTT_INVALID_TOPIC_NAME

      public static final int MQTT_INVALID_TOPIC_NAME
      See Also:
    • MQTT_INVALID_TOPIC_FILTER

      public static final int MQTT_INVALID_TOPIC_FILTER
      See Also:
    • MQTT_INFLIGHT_QUEUE_FULL

      public static final int MQTT_INFLIGHT_QUEUE_FULL
      See Also:
    • MQTT_INVALID_MESSAGE_ID

      public static final int MQTT_INVALID_MESSAGE_ID
      See Also:
  • Constructor Details

    • MqttException

      public MqttException(int code)
      Constructor
      Parameters:
      code - reason code for the exception
    • MqttException

      public MqttException(int code, String message)
      Constructor
      Parameters:
      code - reason code for the exception
      message - detailed message for the exception
  • Method Details

    • code

      public int code()
      Returns:
      reason code for the exception