Interface ExceptionHandler.Interceptor (2.9.3)

public static interface ExceptionHandler.Interceptor extends Serializable

Implements

Serializable

Methods

afterEval(Exception exception, ExceptionHandler.Interceptor.RetryResult retryResult)

public abstract ExceptionHandler.Interceptor.RetryResult afterEval(Exception exception, ExceptionHandler.Interceptor.RetryResult retryResult)

This method is called after the evaluation and could alter its result.

Parameters
NameDescription
exceptionException

the exception that is being evaluated

retryResultExceptionHandler.Interceptor.RetryResult

the result of the evaluation so far

Returns
TypeDescription
ExceptionHandler.Interceptor.RetryResult

RetryResult to indicate if the exception should be ignored ( RetryResult#RETRY), propagated (RetryResult#NO_RETRY), or evaluation should proceed (RetryResult#CONTINUE_EVALUATION).

beforeEval(Exception exception)

public abstract ExceptionHandler.Interceptor.RetryResult beforeEval(Exception exception)

This method is called before exception evaluation and could short-circuit the process.

Parameter
NameDescription
exceptionException

the exception that is being evaluated

Returns
TypeDescription
ExceptionHandler.Interceptor.RetryResult

RetryResult to indicate if the exception should be ignored ( RetryResult#RETRY), propagated (RetryResult#NO_RETRY), or evaluation should proceed (RetryResult#CONTINUE_EVALUATION).