public static interface ExceptionHandler.Interceptor extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
ExceptionHandler.Interceptor.RetryResult |
Modifier and Type | Method and Description |
---|---|
ExceptionHandler.Interceptor.RetryResult |
afterEval(Exception exception,
ExceptionHandler.Interceptor.RetryResult retryResult)
This method is called after the evaluation and could alter its result.
|
ExceptionHandler.Interceptor.RetryResult |
beforeEval(Exception exception)
This method is called before exception evaluation and could short-circuit the process.
|
ExceptionHandler.Interceptor.RetryResult beforeEval(Exception exception)
exception
- the exception that is being evaluatedExceptionHandler.Interceptor.RetryResult
to indicate if the exception should be ignored ( ExceptionHandler.Interceptor.RetryResult.RETRY
), propagated (ExceptionHandler.Interceptor.RetryResult.NO_RETRY
), or evaluation should
proceed (ExceptionHandler.Interceptor.RetryResult.CONTINUE_EVALUATION
).ExceptionHandler.Interceptor.RetryResult afterEval(Exception exception, ExceptionHandler.Interceptor.RetryResult retryResult)
exception
- the exception that is being evaluatedretryResult
- the result of the evaluation so farExceptionHandler.Interceptor.RetryResult
to indicate if the exception should be ignored ( ExceptionHandler.Interceptor.RetryResult.RETRY
), propagated (ExceptionHandler.Interceptor.RetryResult.NO_RETRY
), or evaluation should
proceed (ExceptionHandler.Interceptor.RetryResult.CONTINUE_EVALUATION
).Copyright © 2019 Google LLC. All rights reserved.