Package org.jgrapes.core.events
Class HandlingError
- All Implemented Interfaces:
Future<Void>
,Associator
,Eligible
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
.
-
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents
-
Constructor Summary
ConstructorsConstructorDescriptionHandlingError
(Event<?> event, Throwable throwable) Creates a new event caused by the given throwable.HandlingError
(HandlingError event) Creates a new event as a copy of an existing event. -
Method Summary
Methods inherited from class org.jgrapes.core.events.Error
duplicate, event, message, throwable, toString
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGet
-
Constructor Details
-
HandlingError
Creates a new event as a copy of an existing event.Useful for forwarding an event.
- Parameters:
event
-
-
HandlingError
Creates a new event caused by the given throwable.- Parameters:
event
- the event that was being handledthrowable
- the throwable that occurred
-