Exception: Google::Ads::GoogleAds::Errors::GoogleAdsError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

#failureObject (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

#inspectObject



37
38
39
# File 'lib/google/ads/google_ads/errors.rb', line 37

def inspect
  "#<#{self.class.name}: #{object_id} #{failure.inspect}>"
end