-
- All Implemented Interfaces:
-
java.io.Serializable
public class MqttPersistenceException extends MqttException
This exception is thrown by the implementor of the persistence interface if there is a problem reading or writing persistent data.
-
-
Field Summary
Fields Modifier and Type Field Description public final static shortREASON_CODE_PERSISTENCE_IN_USE
-
Constructor Summary
Constructors Constructor Description MqttPersistenceException()Constructs a new MqttPersistenceExceptionMqttPersistenceException(int reasonCode)Constructs a new MqttPersistenceExceptionwith the specified code as the underlying reason.MqttPersistenceException(Throwable cause)Constructs a new MqttPersistenceExceptionwith the specifiedThrowableas the underlying reason.MqttPersistenceException(int reason, Throwable cause)Constructs a new MqttPersistenceExceptionwith the specifiedThrowableas 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
-
MqttPersistenceException
MqttPersistenceException()
Constructs a newMqttPersistenceException
-
MqttPersistenceException
MqttPersistenceException(int reasonCode)
Constructs a newMqttPersistenceExceptionwith the specified code as the underlying reason.- Parameters:
reasonCode- the reason code for the exception.
-
MqttPersistenceException
MqttPersistenceException(Throwable cause)
Constructs a newMqttPersistenceExceptionwith the specifiedThrowableas the underlying reason.- Parameters:
cause- the underlying cause of the exception.
-
MqttPersistenceException
MqttPersistenceException(int reason, Throwable cause)
Constructs a newMqttPersistenceExceptionwith the specifiedThrowableas the underlying reason.- Parameters:
reason- the reason code for the exception.cause- the underlying cause of the exception.
-
-
-
-