class Azure::MixedReality::Mgmt::V2019_02_28_preview::Models::ErrorResponse

Response on Error

Attributes

code[RW]

@return [String] String that can be used to programmatically identify the error.

details[RW]

@return [String] An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.

message[RW]

@return [String] Describes the error in detail and provides debugging information

target[RW]

@return [String] The target of the particular error

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-02-28-preview/generated/azure_mgmt_mixedreality/models/error_response.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ErrorResponse',
    type: {
      name: 'Composite',
      class_name: 'ErrorResponse',
      model_properties: {
        message: {
          client_side_validation: true,
          required: true,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        },
        code: {
          client_side_validation: true,
          required: true,
          serialized_name: 'code',
          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: 'String'
          }
        }
      }
    }
  }
end