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
ConstructorsConstructorDescriptionMqttException(String reason) Constructs a newMqttExceptionwith the specified reasonMqttException(Throwable cause) Constructs a newMqttExceptionwith the specifiedThrowableas 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 newMqttExceptionwith the specified reason- Parameters:
 reason- the reason for the exception.
 - 
MqttException
Constructs a newMqttExceptionwith the specifiedThrowableas 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:
 getMessagein classThrowable
 - 
toString
Returns aStringrepresentation of this exception. 
 -