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 metadata.record- Record where the exception occurred.exception- The actual exception.- Returns:
- Whether to continue or stop processing.
-