public class ProceedingErrorHandler extends Object implements ErrorHandler
| Constructor and Description |
|---|
ProceedingErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
onErrorInvoking(Saga saga,
EventMessage publishedEvent,
int invocationCount,
Exception e)
Invoked when an error occurs when a Saga instance is invoked.
|
RetryPolicy |
onErrorPreparing(Class<? extends Saga> sagaType,
EventMessage<?> publishedEvent,
int invocationCount,
Exception e)
Invoked when an error occurs preparing Sagas.
|
public RetryPolicy onErrorPreparing(Class<? extends Saga> sagaType, EventMessage<?> publishedEvent, int invocationCount, Exception e)
ErrorHandleronErrorPreparing in interface ErrorHandlersagaType - The type of Saga to preparepublishedEvent - The event being publishedinvocationCount - The number of attempts to prepare (is always at least 1)e - The exception that occurred in this attemptpublic RetryPolicy onErrorInvoking(Saga saga, EventMessage publishedEvent, int invocationCount, Exception e)
ErrorHandleronErrorInvoking in interface ErrorHandlersaga - 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,
attempte - The exception that occurred in the last attempt to invoke the SagaCopyright © 2010-2015. All Rights Reserved.