你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatModelFactory.ChatError 方法

定义

初始化 ChatError 的新实例。

public static Azure.Communication.Chat.ChatError ChatError (string code = default, string message = default, string target = default, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatError> details = default, Azure.Communication.Chat.ChatError innerError = default);
static member ChatError : string * string * string * seq<Azure.Communication.Chat.ChatError> * Azure.Communication.Chat.ChatError -> Azure.Communication.Chat.ChatError
Public Shared Function ChatError (Optional code As String = Nothing, Optional message As String = Nothing, Optional target As String = Nothing, Optional details As IEnumerable(Of ChatError) = Nothing, Optional innerError As ChatError = Nothing) As ChatError

参数

code
String

错误代码。

message
String

错误消息。

target
String

错误目标。

details
IEnumerable<ChatError>

有关导致此错误的特定错误的详细信息。

innerError
ChatError

内部错误(如果有)。

返回

用于模拟的新 ChatError 实例。

适用于