public interface ErrorCollector<T>
| Modifier and Type | Method and Description |
|---|---|
HandlerResult |
pass(String reason)
Signal that a failure could not be handled by this handler and pass the record on to the next handler.
|
HandlerResult |
retry()
Retry an operation using the same data from the previous operation.
|
HandlerResult |
retry(T retryData)
Retry an operation using the given retry data
|
HandlerResult retry()
HandlerResult.HANDLED but can vary depending on the use case.HandlerResult retry(T retryData)
retryData - operation/data to retryHandlerResult.HANDLED but can vary depending on the use case.HandlerResult pass(String reason)
reason - optional reason for passing on data. Reasons are used in the final report if an error could not be
handled.HandlerResult.PASS but can vary depending on the use case.