io.vertx.mqtt

## 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:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `MQTT_INFLIGHT_QUEUE_FULL`
    `static int` | `MQTT_INVALID_TOPIC_FILTER`
    `static int` | `MQTT_INVALID_TOPIC_NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MqttException(int code)` Constructor
    `MqttException(int code, String message)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `code()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### MQTT_INVALID_TOPIC_NAME

          public static final int MQTT_INVALID_TOPIC_NAME

      See Also:
        Constant Field Values

    - #### MQTT_INVALID_TOPIC_FILTER

          public static final int MQTT_INVALID_TOPIC_FILTER

      See Also:
        Constant Field Values

    - #### MQTT_INFLIGHT_QUEUE_FULL

          public static final int MQTT_INFLIGHT_QUEUE_FULL

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### 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 Detail

    - #### code

          public int code()

      Returns:
        reason code for the exception

Copyright © 2022 Eclipse. All rights reserved.