Class KafkaException
Represents an error that occured during an interaction with Kafka.
Inheritance
System.Object
System.Exception
KafkaException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
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 KafkaException : Exception, ISerializable, _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. |
System.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 |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception