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
Exceptions when producing.
- Author:
- Gary Russell
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.kafka.KafkaExceptionKafkaException.Level
- 
Constructor SummaryConstructorsConstructorDescriptionKafkaProducerException(org.apache.kafka.clients.producer.ProducerRecord<?, ?> failedProducerRecord, String message, Throwable cause) Construct an instance with the provided properties.
- 
Method SummaryModifier and TypeMethodDescription<K,V> org.apache.kafka.clients.producer.ProducerRecord <K, V> Return the failed producer record.Methods inherited from class org.springframework.kafka.KafkaExceptionselfLogMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
KafkaProducerException
 
- 
- 
Method Details- 
getFailedProducerRecordpublic <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
 
 
-