Class KafkaProducerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.kafka.KafkaException
org.springframework.kafka.core.KafkaProducerException
- All Implemented Interfaces:
Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from class KafkaException
KafkaException.Level -
Constructor Summary
ConstructorsConstructorDescriptionKafkaProducerException(org.apache.kafka.clients.producer.ProducerRecord<?, ?> failedProducerRecord, String message, Throwable cause) Construct an instance with the provided properties. -
Method Summary
Modifier and TypeMethodDescription<K,V> org.apache.kafka.clients.producer.ProducerRecord <K, V> Return the failed producer record.Methods inherited from class KafkaException
selfLogMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KafkaProducerException
-
-
Method Details
-
getFailedProducerRecord
public <K,V> org.apache.kafka.clients.producer.ProducerRecord<K,V> getFailedProducerRecord()Return the failed producer record.- Type Parameters:
K- the key type.V- the value type.- Returns:
- the record.
- Since:
- 2.5
-