Class ListenerExecutionFailedException

All Implemented Interfaces:
Serializable

public class ListenerExecutionFailedException extends KafkaException
The listener specific KafkaException extension.
Author:
Gary Russell
See Also:
  • Constructor Details

    • ListenerExecutionFailedException

      public ListenerExecutionFailedException(String message)
      Construct an instance with the provided properties.
      Parameters:
      message - the exception message.
    • ListenerExecutionFailedException

      public ListenerExecutionFailedException(String message, @Nullable Throwable cause)
      Construct an instance with the provided properties.
      Parameters:
      message - the exception message.
      cause - the cause.
    • ListenerExecutionFailedException

      public ListenerExecutionFailedException(String message, @Nullable String groupId, @Nullable Throwable cause)
      Construct an instance with the provided properties.
      Parameters:
      message - the exception message.
      groupId - the container's group.id property.
      cause - the cause.
      Since:
      2.2.4
  • Method Details

    • getGroupId

      @Nullable public String getGroupId()
      Return the consumer group.id property of the container that threw this exception.
      Returns:
      the group id; may be null, but not when the exception is passed to an error handler by a listener container.
      Since:
      2.2.4