Table of Contents

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

message string

The exception message.

MqttConnectException(string, MqttClientPublishResult)

Initializes a new instance of the MqttConnectException class with the specified message.

public MqttConnectException(string message, MqttClientPublishResult result)

Parameters

message string

The exception message.

result MqttClientPublishResult

The 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

message string

The exception message.

innerException Exception

The inner exception.

Properties

Result

Gets the MQTTnet.MqttClientPublishResult of the failed publish operation.

public MqttClientPublishResult? Result { get; }

Property Value

MqttClientPublishResult