ChatModelFactory.ChatError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET