Class: Google::Apis::ContentV2::Error
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::Error
 
- Defined in:
- generated/google/apis/content_v2/classes.rb,
 generated/google/apis/content_v2/representations.rb,
 generated/google/apis/content_v2/representations.rb
Overview
An error returned by the API.
Instance Attribute Summary collapse
- 
  
    
      #domain  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The domain of the error. 
- 
  
    
      #message  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A description of the error. 
- 
  
    
      #reason  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The error code. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Error 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Error. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Error
Returns a new instance of Error
| 1959 1960 1961 | # File 'generated/google/apis/content_v2/classes.rb', line 1959 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#domain ⇒ String
The domain of the error.
Corresponds to the JSON property domain
| 1947 1948 1949 | # File 'generated/google/apis/content_v2/classes.rb', line 1947 def domain @domain end | 
#message ⇒ String
A description of the error.
Corresponds to the JSON property message
| 1952 1953 1954 | # File 'generated/google/apis/content_v2/classes.rb', line 1952 def @message end | 
#reason ⇒ String
The error code.
Corresponds to the JSON property reason
| 1957 1958 1959 | # File 'generated/google/apis/content_v2/classes.rb', line 1957 def reason @reason end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1964 1965 1966 1967 1968 | # File 'generated/google/apis/content_v2/classes.rb', line 1964 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 |