class Azure::CognitiveServices::QnamakerRuntime::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

code[RW]

@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'

details[RW]

@return [Array<Error>] An array of details about specific errors that led to this reported error.

inner_error[RW]

@return [InnerErrorModel] An object containing more specific information than the current object about the error.

message[RW]

@return [String] A human-readable representation of the error.

target[RW]

@return [String] The target of the error.

Private Class Methods

mapper() click to toggle source

Mapper for Error class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/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