org.eclipse.paho.client.mqttv3
Class MqttSecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.eclipse.paho.client.mqttv3.MqttException
              extended byorg.eclipse.paho.client.mqttv3.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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.paho.client.mqttv3.MqttException
REASON_CODE_BROKER_UNAVAILABLE, REASON_CODE_CLIENT_ALREADY_CONNECTED, REASON_CODE_CLIENT_ALREADY_DISCONNECTED, REASON_CODE_CLIENT_DISCONNECT_PROHIBITED, REASON_CODE_CLIENT_DISCONNECTING, REASON_CODE_CLIENT_EXCEPTION, REASON_CODE_CLIENT_NOT_CONNECTED, REASON_CODE_CLIENT_TIMEOUT, REASON_CODE_CONNECTION_LOST, REASON_CODE_FAILED_AUTHENTICATION, REASON_CODE_INVALID_CLIENT_ID, REASON_CODE_INVALID_MESSAGE, REASON_CODE_INVALID_PROTOCOL_VERSION, REASON_CODE_NO_MESSAGE_IDS_AVAILABLE, REASON_CODE_NOT_AUTHORIZED, REASON_CODE_SERVER_CONNECT_ERROR, REASON_CODE_SOCKET_FACTORY_MISMATCH, REASON_CODE_SSL_CONFIG_ERROR, REASON_CODE_UNEXPECTED_ERROR
 
Constructor Summary
MqttSecurityException(int reasonCode)
          Constructs a new MqttSecurityException with the specified code as the underlying reason.
MqttSecurityException(java.lang.Throwable cause)
          Constructs a new MqttSecurityException with the specified Throwable as the underlying reason.
 
Methods inherited from class org.eclipse.paho.client.mqttv3.MqttException
getCause, getMessage, getReasonCode, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MqttSecurityException

public MqttSecurityException(int reasonCode)
Constructs a new MqttSecurityException with the specified code as the underlying reason.

Parameters:
reasonCode - the reason code for the exception.

MqttSecurityException

public MqttSecurityException(java.lang.Throwable cause)
Constructs a new MqttSecurityException with the specified Throwable as the underlying reason.

Parameters:
cause - the underlying cause of the exception.