OnTurnErrorHandler Interface

public interface OnTurnErrorHandler

Error handler that can catch exceptions in the middleware or application.

Method Summary

Modifier and Type Method and Description
abstract java.util.concurrent.CompletableFuture<java.lang.Void> invoke(TurnContext turnContext, Throwable exception)

Error handler that can catch exceptions in the middleware or application.

Method Details

invoke

public abstract CompletableFuture<Void> invoke(TurnContext turnContext, Throwable exception)

Error handler that can catch exceptions in the middleware or application.

Parameters:

turnContext - The context object for this turn.
exception - The exception thrown.

Returns:

A task that represents the work queued to execute.

Applies to