AILanguageQuestionAnsweringAuthoringModelFactory.QuestionAnsweringAuthoringError 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 QuestionAnsweringAuthoringError.
public static Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringError QuestionAnsweringAuthoringError(Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringErrorCode code = default, string message = default, string target = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringError> details = default, Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringInnerErrorModel innerError = default);
static member QuestionAnsweringAuthoringError : Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringErrorCode * string * string * seq<Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringError> * Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringInnerErrorModel -> Azure.AI.Language.QuestionAnswering.Authoring.QuestionAnsweringAuthoringError
Public Shared Function QuestionAnsweringAuthoringError (Optional code As QuestionAnsweringAuthoringErrorCode = Nothing, Optional message As String = Nothing, Optional target As String = Nothing, Optional details As IEnumerable(Of QuestionAnsweringAuthoringError) = Nothing, Optional innerError As QuestionAnsweringAuthoringInnerErrorModel = Nothing) As QuestionAnsweringAuthoringError
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.
An array of details about specific errors that led to this reported error.
- innerError
- QuestionAnsweringAuthoringInnerErrorModel
An object containing more specific information than the current object about the error.
Returns
A new QuestionAnsweringAuthoringError instance for mocking.