Exception: Google::Ads::GoogleAds::Errors::GoogleAdsError
- Defined in:
 - lib/google/ads/google_ads/errors.rb
 
Overview
Raised when encountering an API-specific error, such as an entity not found or a malformed query.
Instance Attribute Summary collapse
- 
  
    
      #failure  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute failure.
 
Instance Method Summary collapse
- 
  
    
      #initialize(failure)  ⇒ GoogleAdsError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleAdsError.
 - #inspect ⇒ Object
 
Constructor Details
#initialize(failure) ⇒ GoogleAdsError
Returns a new instance of GoogleAdsError.
      33 34 35  | 
    
      # File 'lib/google/ads/google_ads/errors.rb', line 33 def initialize(failure) @failure = failure end  | 
  
Instance Attribute Details
#failure ⇒ Object (readonly)
Returns the value of attribute failure.
      31 32 33  | 
    
      # File 'lib/google/ads/google_ads/errors.rb', line 31 def failure @failure end  | 
  
Instance Method Details
#inspect ⇒ Object
      37 38 39  | 
    
      # File 'lib/google/ads/google_ads/errors.rb', line 37 def inspect "#<#{self.class.name}: #{object_id} #{failure.inspect}>" end  |