-
- 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 MqttSecurityExceptionwith the specified code as the underlying reason.MqttSecurityException(Throwable cause)Constructs a new MqttSecurityExceptionwith the specifiedThrowableas the underlying reason.MqttSecurityException(int reasonCode, Throwable cause)Constructs a new MqttSecurityExceptionwith the specified code andThrowableas 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 newMqttSecurityExceptionwith the specified code as the underlying reason.- Parameters:
reasonCode- the reason code for the exception.
-
MqttSecurityException
MqttSecurityException(Throwable cause)
Constructs a newMqttSecurityExceptionwith the specifiedThrowableas the underlying reason.- Parameters:
cause- the underlying cause of the exception.
-
MqttSecurityException
MqttSecurityException(int reasonCode, Throwable cause)
Constructs a newMqttSecurityExceptionwith the specified code andThrowableas the underlying reason.- Parameters:
reasonCode- the reason code for the exception.cause- the underlying cause of the exception.
-
-
-
-