Error Class

The error object. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

All required parameters must be populated in order to send to Azure.

Inheritance
Error

Constructor

Error(**kwargs)

Parameters

code
str or ErrorCodeType
Required

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'

message
str
Required

A human-readable representation of the error.

target
str
Required

The target of the error.

details
list[Error]
Required

An array of details about specific errors that led to this reported error.

inner_error
InnerErrorModel
Required

An object containing more specific information than the current object about the error.