Show / Hide Table of Contents

    Class MqttProduceException

    The exception that is thrown when the result of a publish to the MQTT broker doesn't indicate success.

    Inheritance
    object
    Exception
    SilverbackException
    ProduceException
    MqttProduceException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetType()
    Exception.TargetSite
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.StackTrace
    Exception.SerializeObjectState
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.Broker.Mqtt
    Assembly: Silverback.Integration.MQTT.dll
    Syntax
    [ExcludeFromCodeCoverage]
    public class MqttProduceException : ProduceException, ISerializable

    Constructors

    MqttProduceException()

    Initializes a new instance of the MqttProduceException class.

    Declaration
    public MqttProduceException()

    MqttProduceException(string)

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

    Declaration
    public MqttProduceException(string message)
    Parameters
    Type Name Description
    string message

    The exception message.

    MqttProduceException(string, MqttClientPublishResult)

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

    Declaration
    public MqttProduceException(string message, MqttClientPublishResult result)
    Parameters
    Type Name Description
    string message

    The exception message.

    MqttClientPublishResult result

    The MQTTnet.MqttClientPublishResult.

    MqttProduceException(string, Exception)

    Initializes a new instance of the MqttProduceException class with the specified message and inner exception.

    Declaration
    public MqttProduceException(string message, Exception innerException)
    Parameters
    Type Name Description
    string message

    The exception message.

    Exception innerException

    The inner exception.

    Properties

    Result

    Gets the MQTTnet.MqttClientPublishResult of the failed publish operation.

    Declaration
    public MqttClientPublishResult? Result { get; }
    Property Value
    Type Description
    MqttClientPublishResult

    Implements

    ISerializable
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini