Package 

Class MqttSecurityException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class MqttSecurityException
    extends MqttException
                        

    Thrown when a client is not authorized to perform an operation, or if there is a problem with the security configuration.

    • Constructor Summary

      Constructors 
      Constructor Description
      MqttSecurityException(int reasonCode) Constructs a new MqttSecurityException with the specified code as the underlying reason.
      MqttSecurityException(Throwable cause) Constructs a new MqttSecurityException with the specified Throwable as the underlying reason.
      MqttSecurityException(int reasonCode, Throwable cause) Constructs a new MqttSecurityException with the specified code and Throwable as the underlying reason.
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class org.eclipse.paho.client.mqttv3.MqttException

        getCause, getMessage, getReasonCode, toString
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MqttSecurityException

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

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

        MqttSecurityException(int reasonCode, Throwable cause)
        Constructs a new MqttSecurityException with the specified code and Throwable as the underlying reason.
        Parameters:
        reasonCode - the reason code for the exception.
        cause - the underlying cause of the exception.