Interface ExceptionHandler.Interceptor (2.43.0)

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
Name Description
exception Exception

the exception that is being evaluated

retryResult ExceptionHandler.Interceptor.RetryResult

the result of the evaluation so far

Returns
Type Description
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
Name Description
exception Exception

the exception that is being evaluated

Returns
Type Description
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).