Source code for azure.cognitiveservices.knowledge.qnamaker.models.error_response_error_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .error_py3 import Error


[docs]class ErrorResponseError(Error): """The error object. All required parameters must be populated in order to send to Azure. :param code: Required. One of a server-defined set of error codes. Possible values include: 'BadArgument', 'Forbidden', 'NotFound', 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError', 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded', 'OperationNotFound', 'ServiceError', 'ValidationFailure', 'ExtractionFailure' :type code: str or ~azure.cognitiveservices.knowledge.qnamaker.models.ErrorCodeType :param message: A human-readable representation of the error. :type message: str :param target: The target of the error. :type target: str :param details: An array of details about specific errors that led to this reported error. :type details: list[~azure.cognitiveservices.knowledge.qnamaker.models.Error] :param inner_error: An object containing more specific information than the current object about the error. :type inner_error: ~azure.cognitiveservices.knowledge.qnamaker.models.InnerErrorModel """ _validation = { 'code': {'required': True}, } _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'details': {'key': 'details', 'type': '[Error]'}, 'inner_error': {'key': 'innerError', 'type': 'InnerErrorModel'}, } def __init__(self, *, code, message: str=None, target: str=None, details=None, inner_error=None, **kwargs) -> None: super(ErrorResponseError, self).__init__(code=code, message=message, target=target, details=details, inner_error=inner_error, **kwargs)