Class: AdcenterApi::Errors::ApiException
- Inherits:
-
AdsCommonForAdcenter::Errors::ApiException
- Object
- AdsCommonForAdcenter::Errors::ApiException
- AdcenterApi::Errors::ApiException
- 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
-
#array_fields ⇒ Object
readonly
Returns the value of attribute array_fields.
Instance Method Summary collapse
-
#initialize(exception_fault) ⇒ ApiException
constructor
A new instance of ApiException.
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_fields ⇒ Object (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 |