Class MqttConnectException
- Namespace
- Silverback.Messaging.Broker.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
The exception that is thrown when the MQTT client connection fails.
[ExcludeFromCodeCoverage]
public class MqttConnectException : SilverbackException, ISerializable
- Inheritance
-
MqttConnectException
- Implements
- Inherited Members
Constructors
MqttConnectException()
Initializes a new instance of the MqttConnectException class.
public MqttConnectException()
MqttConnectException(string)
Initializes a new instance of the MqttConnectException class with the specified message.
public MqttConnectException(string message)
Parameters
messagestringThe exception message.
MqttConnectException(string, MqttClientPublishResult)
Initializes a new instance of the MqttConnectException class with the specified message.
public MqttConnectException(string message, MqttClientPublishResult result)
Parameters
messagestringThe exception message.
resultMqttClientPublishResultThe MQTTnet.MqttClientPublishResult.
MqttConnectException(string, Exception)
Initializes a new instance of the MqttConnectException class with the specified message and inner exception.
public MqttConnectException(string message, Exception innerException)
Parameters
Properties
Result
Gets the MQTTnet.MqttClientPublishResult of the failed publish operation.
public MqttClientPublishResult? Result { get; }
Property Value
- MqttClientPublishResult