ChatModelFactory.ChatError Method

Definition

Initializes a new instance of 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

Parameters

code
String

The error code.

message
String

The error message.

target
String

The error target.

details
IEnumerable<ChatError>

Further details about specific errors that led to this error.

innerError
ChatError

The inner error if any.

Returns

A new ChatError instance for mocking.

Applies to