Class HandlingError

All Implemented Interfaces:
Future<Void>, Associator, Eligible

public class HandlingError extends Error
This event signals that a throwable occurred while executing a handler.

It is fired by the default implementation of EventBase.handlingError(org.jgrapes.core.EventPipeline, java.lang.Throwable) in Event.

  • Constructor Details

    • HandlingError

      Creates a new event as a copy of an existing event.

      Useful for forwarding an event.

      Parameters:
      event -
    • HandlingError

      public HandlingError(Event<?> event, Throwable throwable)
      Creates a new event caused by the given throwable.
      Parameters:
      event - the event that was being handled
      throwable - the throwable that occurred