confluent-kafka-dotnet
Show / Hide Table of Contents

Class ConsumeException

Represents an error that occurred during message consumption.

Inheritance
object
Exception
KafkaException
ConsumeException
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 ConsumeException : KafkaException, ISerializable

Constructors

ConsumeException(ConsumeResult<byte[], byte[]>, Error)

Initialize a new instance of ConsumeException

Declaration
public ConsumeException(ConsumeResult<byte[], byte[]> consumerRecord, Error error)
Parameters
TypeNameDescription
ConsumeResult<byte[], byte[]>consumerRecord

An object that provides information know about the consumer record for which the error occurred.

Errorerror

The error that occurred.

ConsumeException(ConsumeResult<byte[], byte[]>, Error, Exception)

Initialize a new instance of ConsumeException

Declaration
public ConsumeException(ConsumeResult<byte[], byte[]> consumerRecord, Error error, Exception innerException)
Parameters
TypeNameDescription
ConsumeResult<byte[], byte[]>consumerRecord

An object that provides information know about the consumer record for which the error occurred.

Errorerror

The error that occurred.

ExceptioninnerException

The exception instance that caused this exception.

Properties

ConsumerRecord

An object that provides information known about the consumer record for which the error occurred.

Declaration
public ConsumeResult<byte[], byte[]> ConsumerRecord { get; }
Property Value
TypeDescription
ConsumeResult<byte[], byte[]>

Implements

ISerializable
In this article