Package 

Class MqttException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class MqttException
    extends Exception
                        

    Thrown if an error occurs communicating with the server.

    • Constructor Detail

      • MqttException

        MqttException(int reasonCode)
        Constructs a new MqttException with the specified code as the underlying reason.
        Parameters:
        reasonCode - the reason code for the exception.
      • MqttException

        MqttException(Throwable cause)
        Constructs a new MqttException with the specified Throwable as the underlying reason.
        Parameters:
        cause - the underlying cause of the exception.
      • MqttException

        MqttException(int reason, Throwable cause)
        Constructs a new MqttException with the specified Throwable as the underlying reason.
        Parameters:
        reason - the reason code for the exception.
        cause - the underlying cause of the exception.
    • Method Detail

      • getReasonCode

         int getReasonCode()

        Returns the reason code for this exception.

      • getCause

         Throwable getCause()

        Returns the underlying cause of this exception, if available.

      • toString

         String toString()

        Returns a String representation of this exception.