Class ProduceException<TKey, TValue>
Represents an error that occured whilst producing a message.
Implements
Inherited Members
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> |