語言

ActivityHandler.InvokeResponseException 建構函式

定義

多載

ActivityHandler.InvokeResponseException()

初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。

public InvokeResponseException();
Public Sub New ()

適用於

ActivityHandler.InvokeResponseException(String)

初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。

public InvokeResponseException(string message);
new Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException : string -> Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException
Public Sub New (message As String)

參數

message
String

說明異常原因的訊息,或是空字串。

適用於

ActivityHandler.InvokeResponseException(HttpStatusCode, Object)

初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。

public InvokeResponseException(System.Net.HttpStatusCode statusCode, object body = default);
new Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException : System.Net.HttpStatusCode * obj -> Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException
Public Sub New (statusCode As HttpStatusCode, Optional body As Object = Nothing)

參數

statusCode
HttpStatusCode

錯誤的 Http 狀態代碼。

body
Object

例外狀況的主體。 預設為 Null。

適用於

ActivityHandler.InvokeResponseException(String, Exception)

初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。

public InvokeResponseException(string message, Exception innerException);
new Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException : string * Exception -> Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException
Public Sub New (message As String, innerException As Exception)

參數

message
String

說明異常原因的訊息,或是空字串。

innerException
Exception

取得造成當前例外的 System.Exception 實例。

適用於