Class MqttException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openhab.core.io.transport.mqtt.MqttException
- All Implemented Interfaces:
Serializable
Thrown if an error occurs communicating with the server. The exception contains a reason code. The semantic of the
reason code depends on the underlying implementation.
- Author:
- David Graeff - Initial contribution
- See Also:
-
Constructor Summary
ConstructorDescriptionMqttException
(String reason) Constructs a newMqttException
with the specified reasonMqttException
(Throwable cause) Constructs a newMqttException
with the specifiedThrowable
as the underlying reason. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MqttException
Constructs a newMqttException
with the specified reason- Parameters:
reason
- the reason for the exception.
-
MqttException
Constructs a newMqttException
with the specifiedThrowable
as the underlying reason.- Parameters:
cause
- the underlying cause of the exception.
-
-
Method Details
-
getCause
Returns the underlying cause of this exception, if available. -
getMessage
Returns the detail message for this exception. May be null.- Overrides:
getMessage
in classThrowable
-
toString
Returns aString
representation of this exception.
-