Open sandboxFocus

Method OnExceptionAsync

OnExceptionAsync(ExceptionInfo, CancellationToken)

Method invoked when an exception is thrown by the CachingBackend implementation. It should return a RecoveryAction.

Declaration
public virtual ValueTask<RecoveryAction> OnExceptionAsync(ExceptionInfo exceptionInfo, CancellationToken cancellationToken)
Parameters
Type Name Description
ExceptionInfo exceptionInfo

Information about the exception.

CancellationToken cancellationToken

The CancellationToken for the current operation.

Returns
Type Description
ValueTask<RecoveryAction>

A RecoveryAction.

Implements