Package org.apache.kafka.streams.errors
Interface ProcessingExceptionHandler
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
LogAndContinueProcessingExceptionHandler,LogAndFailProcessingExceptionHandler
An interface that allows user code to inspect a record that has failed processing
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum -
Method Summary
Modifier and TypeMethodDescriptionhandle(ErrorHandlerContext context, Record<?, ?> record, Exception exception) Inspect a record and the exception receivedMethods inherited from interface org.apache.kafka.common.Configurable
configure
-
Method Details
-
handle
ProcessingExceptionHandler.ProcessingHandlerResponse handle(ErrorHandlerContext context, Record<?, ?> record, Exception exception) Inspect a record and the exception received- Parameters:
context- processing context metadatarecord- record where the exception occurredexception- the actual exception
-