BotHandlerException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents errors that occur during bot activity processing and provides context about the associated activity.
public class BotHandlerException : Exception
type BotHandlerException = class
inherit Exception
Public Class BotHandlerException
Inherits Exception
- Inheritance
-
BotHandlerException
Remarks
Use this exception to capture and propagate errors that occur during bot activity handling, along with contextual information about the activity involved. This can aid in debugging and error reporting scenarios.
Constructors
| Name | Description |
|---|---|
| BotHandlerException() |
Initializes a new instance of the BotHandlerException class. |
| BotHandlerException(String, Exception, CoreActivity) |
Initializes a new instance of the BotHandlerException class with a specified error message, inner exception, and activity. |
| BotHandlerException(String, Exception) |
Initializes a new instance of the BotHandlerException class with a specified error message and inner exception. |
| BotHandlerException(String) |
Initializes a new instance of the BotHandlerException class with a specified error message. |
Properties
| Name | Description |
|---|---|
| Activity |
Gets the bot activity associated with the exception, or null if no activity was provided. |