class Azure::CognitiveServices::Qnamaker::V4_0::Models::Error
The error object. As per Microsoft One API guidelines - github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
Attributes
@return [ErrorCodeType] 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'
@return [Array<Error>] An array of details about specific errors that led to this reported error.
@return [InnerErrorModel] An object containing more specific information than the current object about the error.
@return [String] A human-readable representation of the error.
@return [String] The target of the error.
Private Class Methods
Mapper for Error
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error.rb, line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Error', type: { name: 'Composite', class_name: 'Error', model_properties: { code: { client_side_validation: true, required: true, serialized_name: 'code', type: { name: 'String' } }, message: { client_side_validation: true, required: false, serialized_name: 'message', type: { name: 'String' } }, target: { client_side_validation: true, required: false, serialized_name: 'target', type: { name: 'String' } }, details: { client_side_validation: true, required: false, serialized_name: 'details', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ErrorElementType', type: { name: 'Composite', class_name: 'Error' } } } }, inner_error: { client_side_validation: true, required: false, serialized_name: 'innerError', type: { name: 'Composite', class_name: 'InnerErrorModel' } } } } } end