Package com.google.cloud
Interface ExceptionHandler.Interceptor
-
- All Superinterfaces:
Serializable
- Enclosing class:
- ExceptionHandler
public static interface ExceptionHandler.Interceptor extends Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExceptionHandler.Interceptor.RetryResult
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExceptionHandler.Interceptor.RetryResultafterEval(Exception exception, ExceptionHandler.Interceptor.RetryResult retryResult)This method is called after the evaluation and could alter its result.ExceptionHandler.Interceptor.RetryResultbeforeEval(Exception exception)This method is called before exception evaluation and could short-circuit the process.
-
-
-
Method Detail
-
beforeEval
ExceptionHandler.Interceptor.RetryResult beforeEval(Exception exception)
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).
-
-