public interface ErrorHandler
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
onErrorInvoking(Saga saga,
EventMessage publishedEvent,
int invocationCount,
Exception exception)
Invoked when an error occurs when a Saga instance is invoked.
|
RetryPolicy |
onErrorPreparing(Class<? extends Saga> sagaType,
EventMessage<?> publishedEvent,
int invocationCount,
Exception exception)
Invoked when an error occurs preparing Sagas.
|
RetryPolicy onErrorPreparing(Class<? extends Saga> sagaType, EventMessage<?> publishedEvent, int invocationCount, Exception exception)
sagaType - The type of Saga to preparepublishedEvent - The event being publishedinvocationCount - The number of attempts to prepare (is always at least 1)exception - The exception that occurred in this attemptRetryPolicy onErrorInvoking(Saga saga, EventMessage publishedEvent, int invocationCount, Exception exception)
saga - The Saga instance being invokedpublishedEvent - The event handled by the SagainvocationCount - The number of times this event has been offered to the Saga, including the last, failed,
attemptexception - The exception that occurred in the last attempt to invoke the SagaCopyright © 2010-2015. All Rights Reserved.