Class: Google::Apis::ContentV2::Error

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Overview

An error returned by the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



2613
2614
2615
# File 'lib/google/apis/content_v2/classes.rb', line 2613

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#domainString

The domain of the error. Corresponds to the JSON property domain

Returns:

  • (String)


2601
2602
2603
# File 'lib/google/apis/content_v2/classes.rb', line 2601

def domain
  @domain
end

#messageString

A description of the error. Corresponds to the JSON property message

Returns:

  • (String)


2606
2607
2608
# File 'lib/google/apis/content_v2/classes.rb', line 2606

def message
  @message
end

#reasonString

The error code. Corresponds to the JSON property reason

Returns:

  • (String)


2611
2612
2613
# File 'lib/google/apis/content_v2/classes.rb', line 2611

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2618
2619
2620
2621
2622
# File 'lib/google/apis/content_v2/classes.rb', line 2618

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
end