AdapterWithErrorHandler 类
- 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
提供异常处理的适配器。
构造函数摘要
| 构造函数 | 说明 |
|---|---|
| AdapterWithErrorHandler(Configuration withConfiguration) |
通过提供 com.microsoft.bot.builder.OnTurnErrorHandler构造处理 Bot |
| AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState) |
通过提供 com.microsoft.bot.builder.OnTurnErrorHandler构造处理 Bot |
方法继承自 BotAdapter
方法继承自 BotFrameworkAdapter
方法继承自 BotFrameworkHttpAdapter
方法继承自 java.lang.Object
构造函数详细信息
AdapterWithErrorHandler
public AdapterWithErrorHandler(Configuration withConfiguration)
通过提供 com.microsoft.bot.builder.OnTurnErrorHandler来构造一个错误处理 BotFrameworkHttpAdapter。
对于此示例,将显示一条简单的消息。 对于生产机器人,可能首选更丰富的消息或作。
参数:
AdapterWithErrorHandler
public AdapterWithErrorHandler(Configuration withConfiguration, ConversationState withConversationState)
通过提供 com.microsoft.bot.builder.OnTurnErrorHandler来构造一个错误处理 BotFrameworkHttpAdapter。
对于此示例,将显示一条简单的消息。 对于生产机器人,可能首选更丰富的消息或作。
参数: