confluent-kafka-dotnet
Show / Hide Table of Contents

Class ProduceException<TKey, TValue>

Represents an error that occured whilst producing a message.

Inheritance
object
Exception
KafkaException
ProduceException<TKey, TValue>
Implements
ISerializable
Inherited Members
KafkaException.Error
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public class ProduceException<TKey, TValue> : KafkaException, ISerializable
Type Parameters
Name Description
TKey
TValue

Constructors

ProduceException(Error, DeliveryResult<TKey, TValue>)

Initialize a new instance of ProduceException based on an existing Error value.

Declaration
public ProduceException(Error error, DeliveryResult<TKey, TValue> deliveryResult)
Parameters
Type Name Description
Error error

The error associated with the delivery report.

DeliveryResult<TKey, TValue> deliveryResult

The delivery result associated with the produce request.

ProduceException(Error, DeliveryResult<TKey, TValue>, Exception)

Initialize a new instance of ProduceException based on an existing Error value.

Declaration
public ProduceException(Error error, DeliveryResult<TKey, TValue> deliveryResult, Exception innerException)
Parameters
Type Name Description
Error error

The error associated with the delivery result.

DeliveryResult<TKey, TValue> deliveryResult

The delivery result associated with the produce request.

Exception innerException

The exception instance that caused this exception.

Properties

DeliveryResult

The delivery result associated with the produce request.

Declaration
public DeliveryResult<TKey, TValue> DeliveryResult { get; }
Property Value
Type Description
DeliveryResult<TKey, TValue>

Implements

ISerializable
In this article