Language

BotHandlerException Class

Definition

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.

Applies to