Class IgnoreExceptionHandler

  • All Implemented Interfaces:
    ExceptionHandler<java.lang.Object>

    public final class IgnoreExceptionHandler
    extends java.lang.Object
    implements ExceptionHandler<java.lang.Object>
    Convenience implementation of an exception handler that using standard JDK logging to log the exception as Level.INFO
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • logger

        private final java.util.logging.Logger logger
    • Constructor Detail

      • IgnoreExceptionHandler

        public IgnoreExceptionHandler()
      • IgnoreExceptionHandler

        public IgnoreExceptionHandler​(java.util.logging.Logger logger)
    • Method Detail

      • handleEventException

        public void handleEventException​(java.lang.Throwable ex,
                                         long sequence,
                                         java.lang.Object event)
        Description copied from interface: ExceptionHandler

        Strategy for handling uncaught exceptions when processing an event.

        If the strategy wishes to terminate further processing by the BatchEventProcessor then it should throw a RuntimeException.

        Specified by:
        handleEventException in interface ExceptionHandler<java.lang.Object>
        Parameters:
        ex - the exception that propagated from the EventHandler.
        sequence - of the event which cause the exception.
        event - being processed when the exception occurred. This can be null.