Class: AdwordsApi::Errors::ApiException

Inherits:
AdsCommon::Errors::ApiException
  • Object
show all
Defined in:
lib/adwords_api/errors.rb

Overview

This class encapsulates base class for API exceptions. More specific exceptions are generated based on Service WSDL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception_fault) ⇒ ApiException

Returns a new instance of ApiException.



32
33
34
35
# File 'lib/adwords_api/errors.rb', line 32

def initialize(exception_fault)
  @array_fields ||= []
  exception_fault.each {|key, value| set_field(key, value)}
end

Instance Attribute Details

#array_fieldsObject (readonly)

Returns the value of attribute array_fields.



30
31
32
# File 'lib/adwords_api/errors.rb', line 30

def array_fields
  @array_fields
end