Class: Google::Apis::ContentV2sandbox::Error

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

Overview

An error returned by the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error



69
70
71
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 69

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

Instance Attribute Details

#domainString

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

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 57

def domain
  @domain
end

#messageString

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

Returns:

  • (String)


62
63
64
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 62

def message
  @message
end

#reasonString

The error code. Corresponds to the JSON property reason

Returns:

  • (String)


67
68
69
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 67

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



74
75
76
77
78
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 74

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