public class MqttSecurityException extends MqttException
REASON_CODE_BROKER_UNAVAILABLE, REASON_CODE_CLIENT_ALREADY_DISCONNECTED, REASON_CODE_CLIENT_CLOSED, REASON_CODE_CLIENT_CONNECTED, REASON_CODE_CLIENT_DISCONNECT_PROHIBITED, REASON_CODE_CLIENT_DISCONNECTING, REASON_CODE_CLIENT_EXCEPTION, REASON_CODE_CLIENT_NOT_CONNECTED, REASON_CODE_CLIENT_TIMEOUT, REASON_CODE_CONNECT_IN_PROGRESS, REASON_CODE_CONNECTION_LOST, REASON_CODE_DISCONNECTED_BUFFER_FULL, REASON_CODE_FAILED_AUTHENTICATION, REASON_CODE_INVALID_CLIENT_ID, REASON_CODE_INVALID_MESSAGE, REASON_CODE_INVALID_PROTOCOL_VERSION, REASON_CODE_MAX_INFLIGHT, 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_SUBSCRIBE_FAILED, REASON_CODE_TOKEN_INUSE, REASON_CODE_UNEXPECTED_ERROR, REASON_CODE_WRITE_TIMEOUT
Constructor and Description |
---|
MqttSecurityException(int reasonCode)
Constructs a new
MqttSecurityException with the specified code
as the underlying reason. |
MqttSecurityException(int reasonCode,
java.lang.Throwable cause)
Constructs a new
MqttSecurityException with the specified
code and Throwable as the underlying reason. |
MqttSecurityException(java.lang.Throwable cause)
Constructs a new
MqttSecurityException with the specified
Throwable as the underlying reason. |
getCause, getMessage, getReasonCode, toString
public MqttSecurityException(int reasonCode)
MqttSecurityException
with the specified code
as the underlying reason.reasonCode
- the reason code for the exception.public MqttSecurityException(java.lang.Throwable cause)
MqttSecurityException
with the specified
Throwable
as the underlying reason.cause
- the underlying cause of the exception.public MqttSecurityException(int reasonCode, java.lang.Throwable cause)
MqttSecurityException
with the specified
code and Throwable
as the underlying reason.reasonCode
- the reason code for the exception.cause
- the underlying cause of the exception.