AdapterWithErrorHandler Class

public class AdapterWithErrorHandler
extends BotFrameworkHttpAdapter

An Adapter that provides exception handling.

Constructor Summary

Constructor Description
AdapterWithErrorHandler(Configuration withConfiguration)

Constructs an error handling BotFrameworkHttpAdapter by providing an com.microsoft.bot.builder.OnTurnErrorHandler.

AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState)

Constructs an error handling BotFrameworkHttpAdapter by providing an com.microsoft.bot.builder.OnTurnErrorHandler.

Methods inherited from BotAdapter

Methods inherited from BotFrameworkAdapter

Methods inherited from BotFrameworkHttpAdapter

Methods inherited from 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

Constructor Details

AdapterWithErrorHandler

public AdapterWithErrorHandler(Configuration withConfiguration)

Constructs an error handling BotFrameworkHttpAdapter by providing an com.microsoft.bot.builder.OnTurnErrorHandler.

For this sample, a simple message is displayed. For a production Bot, a more informative message or action is likely preferred.

Parameters:

withConfiguration - The Configuration object to use.

AdapterWithErrorHandler

public AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState)

Constructs an error handling BotFrameworkHttpAdapter by providing an com.microsoft.bot.builder.OnTurnErrorHandler.

For this sample, a simple message is displayed. For a production Bot, a more informative message or action is likely preferred.

Parameters:

withConfiguration - The Configuration object to use.
withConversationState - For ConversationState.

Applies to