Class: AdcenterApi::Errors::ApiException

Inherits:
AdsCommonForAdcenter::Errors::ApiException
  • Object
show all
Defined in:
lib/adcenter_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.



12
13
14
15
# File 'lib/adcenter_api/errors.rb', line 12

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.



10
11
12
# File 'lib/adcenter_api/errors.rb', line 10

def array_fields
  @array_fields
end