org.eclipse.paho.client.mqttv3
Class MqttPersistenceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.eclipse.paho.client.mqttv3.MqttException
              extended byorg.eclipse.paho.client.mqttv3.MqttPersistenceException
All Implemented Interfaces:
java.io.Serializable

public class MqttPersistenceException
extends MqttException

This exception should be thrown by the implementor of the persistence interface if there is a problem reading or writing persistent data.

See Also:
Serialized Form

Field Summary
static short REASON_CODE_PERSISTENCE_IN_USE
          Persistence is already being used by another client.
 
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
MqttPersistenceException()
          Constructs a new MqttPersistenceException
MqttPersistenceException(int reasonCode)
          Constructs a new MqttPersistenceException with the specified code as the underlying reason.
MqttPersistenceException(java.lang.Throwable cause)
          Constructs a new MqttPersistenceException 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
 

Field Detail

REASON_CODE_PERSISTENCE_IN_USE

public static final short REASON_CODE_PERSISTENCE_IN_USE
Persistence is already being used by another client.

See Also:
Constant Field Values
Constructor Detail

MqttPersistenceException

public MqttPersistenceException()
Constructs a new MqttPersistenceException


MqttPersistenceException

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

Parameters:
reasonCode - the reason code for the exception.

MqttPersistenceException

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

Parameters:
cause - the underlying cause of the exception.