Package com.google.cloud
Interface ExceptionHandler.Interceptor
- All Superinterfaces:
Serializable
- Enclosing class:
- ExceptionHandler
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionafterEval(Exception exception, ExceptionHandler.Interceptor.RetryResult retryResult) This method is called after the evaluation and could alter its result.beforeEval(Exception exception) This method is called before exception evaluation and could short-circuit the process.
-
Method Details
-
beforeEval
This method is called before exception evaluation and could short-circuit the process.- Parameters:
exception- the exception that is being evaluated- Returns:
ExceptionHandler.Interceptor.RetryResultto 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).
-
afterEval
ExceptionHandler.Interceptor.RetryResult afterEval(Exception exception, ExceptionHandler.Interceptor.RetryResult retryResult) This method is called after the evaluation and could alter its result.- Parameters:
exception- the exception that is being evaluatedretryResult- the result of the evaluation so far- Returns:
ExceptionHandler.Interceptor.RetryResultto 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).
-