Delegate to different error handlers based on the exception type. See https://stackoverflow.com/questions/68118649/how-to-process-all-messages-between-two-timestamps-with-spring-kafka/68118744#68118744