11/*
2- * Copyright 2017 the original author or authors.
2+ * Copyright 2017-2018 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2828 *
2929 * @author Venil Noronha
3030 * @author Gary Russell
31+ * @author Artem Bilan
32+ *
3133 * @since 1.3
3234 */
3335@ FunctionalInterface
@@ -38,7 +40,7 @@ public interface KafkaListenerErrorHandler {
3840 * @param message the spring-messaging message.
3941 * @param exception the exception the listener threw, wrapped in a
4042 * {@link ListenerExecutionFailedException}.
41- * @return the return value is ignored unless the annoated method has a
43+ * @return the return value is ignored unless the annotated method has a
4244 * {@code @SendTo} annotation.
4345 * @throws Exception an exception which may be the original or different.
4446 */
@@ -50,12 +52,13 @@ public interface KafkaListenerErrorHandler {
5052 * @param exception the exception the listener threw, wrapped in a
5153 * {@link ListenerExecutionFailedException}.
5254 * @param consumer the consumer.
53- * @return the return value is ignored unless the annoated method has a
55+ * @return the return value is ignored unless the annotated method has a
5456 * {@code @SendTo} annotation.
5557 * @throws Exception an exception which may be the original or different.
5658 */
5759 default Object handleError (Message <?> message , ListenerExecutionFailedException exception ,
5860 Consumer <?, ?> consumer ) throws Exception {
61+
5962 return handleError (message , exception );
6063 }
6164
0 commit comments