ConversationsModelFactory.ConversationError 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 ConversationError.
public static Azure.AI.Language.Conversations.Models.ConversationError ConversationError (Azure.AI.Language.Conversations.Models.ConversationErrorCode code = default, string message = default, string target = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Conversations.Models.ConversationError> details = default, Azure.AI.Language.Conversations.Models.InnerErrorModel innererror = default);
static member ConversationError : Azure.AI.Language.Conversations.Models.ConversationErrorCode * string * string * seq<Azure.AI.Language.Conversations.Models.ConversationError> * Azure.AI.Language.Conversations.Models.InnerErrorModel -> Azure.AI.Language.Conversations.Models.ConversationError
Public Shared Function ConversationError (Optional code As ConversationErrorCode = Nothing, Optional message As String = Nothing, Optional target As String = Nothing, Optional details As IEnumerable(Of ConversationError) = Nothing, Optional innererror As InnerErrorModel = Nothing) As ConversationError
Parameters
One of a server-defined set of error codes.
- message
- String
A human-readable representation of the error.
- target
- String
The target of the error.
- details
- IEnumerable<ConversationError>
An array of details about specific errors that led to this reported error.
- innererror
- InnerErrorModel
An object containing more specific information than the current object about the error.
Returns
A new ConversationError instance for mocking.
Applies to
Azure SDK for .NET