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