Skip to content

Add consumer exception handler callback - #4514

Open
Gautam-aman wants to merge 1 commit into
spring-projects:mainfrom
Gautam-aman:gh-4490-consumer-exception-handler
Open

Add consumer exception handler callback#4514
Gautam-aman wants to merge 1 commit into
spring-projects:mainfrom
Gautam-aman:gh-4490-consumer-exception-handler

Conversation

@Gautam-aman

Copy link
Copy Markdown
Contributor

Fixes #4490

Adds a dedicated ConsumerExceptionHandler callback that can be configured through ContainerProperties.

The callback is invoked from KafkaMessageListenerContainer.ListenerConsumer#handleConsumerException, allowing applications to react to consumer-level exceptions without configuring a CommonErrorHandler.

This is useful for applications that rely on AfterRollbackProcessor-based listener error handling and do not want to participate in the CommonErrorHandler flow, while still being able to handle fatal consumer exceptions.

@Gautam-aman
Gautam-aman force-pushed the gh-4490-consumer-exception-handler branch from acb7560 to 2370322 Compare June 24, 2026 17:29
Signed-off-by: Aman Gautam <amangautam2128@gmail.com>
@Gautam-aman
Gautam-aman force-pushed the gh-4490-consumer-exception-handler branch from 2370322 to 6cd6c63 Compare June 24, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

handleConsumerException without CommonErrorHandler

1 participant