ChatModelFactory.ChatError(String, String, String, IEnumerable<ChatError>, 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
System.String

The error code.

message
System.String

The error message.

target
System.String

The error target.

details
System.Collections.Generic.IEnumerable<ChatError>

Further details about specific errors that led to this error.

innerError
ChatError

The inner error if any.

Returns

ChatError

A new ChatError instance for mocking.

Applies to