AdapterWithErrorHandler Classe

public class AdapterWithErrorHandler
extends BotFrameworkHttpAdapter

Adapter che fornisce la gestione delle eccezioni.

Riepilogo dei costruttori

Costruttore Descrizione
AdapterWithErrorHandler(Configuration withConfiguration)

Costruisce un bot di gestione degli erroriFrameworkadapter httpfornendo un com.microsoft.bot.builder.OnTurnErrorHandler.

AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState)

Costruisce un bot di gestione degli erroriFrameworkadapter httpfornendo un com.microsoft.bot.builder.OnTurnErrorHandler.

Metodi ereditati da BotAdapter

Metodi ereditati da BotFrameworkAdapter

Metodi ereditati da BotFrameworkHttpAdapter

Metodi ereditati da java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Dettagli costruttore

AdapterWithErrorHandler

public AdapterWithErrorHandler(Configuration withConfiguration)

Costruisce una gestione degli errori di BotFrameworkHttpAdapter fornendo un com.microsoft.bot.builder.OnTurnErrorHandler.

Per questo esempio viene visualizzato un semplice messaggio. Per un bot di produzione, è probabile che si preferisca un messaggio o un'azione più informativa.

Parametri:

withConfiguration - Oggetto Configuration da utilizzare.

AdapterWithErrorHandler

public AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState)

Costruisce una gestione degli errori di BotFrameworkHttpAdapter fornendo un com.microsoft.bot.builder.OnTurnErrorHandler.

Per questo esempio viene visualizzato un semplice messaggio. Per un bot di produzione, è probabile che si preferisca un messaggio o un'azione più informativa.

Parametri:

withConfiguration - Oggetto Configuration da utilizzare.
withConversationState - Per ConversationState.

Si applica a