AdapterWithErrorHandler Class
- java.
lang. Object - com.
microsoft. bot. builder. BotAdapter - com.
microsoft. bot. builder. BotFrameworkAdapter - com.
microsoft. bot. integration. BotFrameworkHttpAdapter - com.
microsoft. bot. integration. AdapterWithErrorHandler
- com.
- com.
- com.
- com.
public class AdapterWithErrorHandler
extends BotFrameworkHttpAdapter
An Adapter that provides exception handling.
Constructor Summary
| Constructor | Description |
|---|---|
| AdapterWithErrorHandler(Configuration withConfiguration) |
Constructs an error handling Bot |
| AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState) |
Constructs an error handling Bot |
Methods inherited from BotAdapter
Methods inherited from BotFrameworkAdapter
Methods inherited from BotFrameworkHttpAdapter
Methods inherited from java.lang.Object
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:
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: