confluent-kafka-dotnet
Show / Hide Table of Contents

Class ProduceException<TKey, TValue>

Represents an error that occured whilst producing a message.

Inheritance
System.Object
System.Exception
KafkaException
ProduceException<TKey, TValue>
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
KafkaException.Error
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.dll
Syntax
public class ProduceException<TKey, TValue> : KafkaException, ISerializable, _Exception
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.

System.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

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
In This Article