Class KafkaException
Represents an error that occured during an interaction with Kafka.
Inheritance
System.Object
KafkaException
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.dll
Syntax
public class KafkaException : Exception
Constructors
KafkaException(Error)
Initialize a new instance of KafkaException based on an existing Error instance.
Declaration
public KafkaException(Error error)
Parameters
Type | Name | Description |
---|---|---|
Error | error | The Kafka Error. |
KafkaException(Error, Exception)
Initialize a new instance of KafkaException based on an existing Error instance and inner exception.
Declaration
public KafkaException(Error error, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Error | error | The Kafka Error. |
Exception | innerException | The exception instance that caused this exception. |
KafkaException(ErrorCode)
Initialize a new instance of KafkaException based on an existing ErrorCode value.
Declaration
public KafkaException(ErrorCode code)
Parameters
Type | Name | Description |
---|---|---|
ErrorCode | code | The Kafka ErrorCode. |
Properties
Error
Gets the Error associated with this KafkaException.
Declaration
public Error Error { get; }
Property Value
Type | Description |
---|---|
Error |