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
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.