class Azure::Signalr::Mgmt::V2018_10_01::Models::ErrorResponseBody

Describes a particular API error with an error code and a message.

Attributes

code[RW]

@return [String] An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases.

details[RW]

@return [Array<ErrorResponseBody>] Contains nested errors that are related to this error.

message[RW]

@return [String] A message that describes the error in detail and provides debugging information.

target[RW]

@return [String] The target of the particular error (for example, the name of the property in error).

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ErrorResponseBody',
    type: {
      name: 'Composite',
      class_name: 'ErrorResponseBody',
      model_properties: {
        code: {
          client_side_validation: true,
          required: true,
          serialized_name: 'code',
          type: {
            name: 'String'
          }
        },
        message: {
          client_side_validation: true,
          required: true,
          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: 'ErrorResponseBodyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ErrorResponseBody'
                }
            }
          }
        }
      }
    }
  }
end