Class: AdwordsApi::Errors::ReportXmlError
- Inherits:
-
ReportError
- Object
- AdsCommon::Errors::ApiException
- ReportError
- AdwordsApi::Errors::ReportXmlError
- Defined in:
- lib/adwords_api/errors.rb
Overview
Error for server-side report XML error.
Instance Attribute Summary collapse
-
#field_path ⇒ Object
readonly
Returns the value of attribute field_path.
-
#trigger ⇒ Object
readonly
Returns the value of attribute trigger.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from ReportError
Instance Method Summary collapse
-
#initialize(http_code, error_type, error_trigger, error_field_path) ⇒ ReportXmlError
constructor
A new instance of ReportXmlError.
Constructor Details
#initialize(http_code, error_type, error_trigger, error_field_path) ⇒ ReportXmlError
Returns a new instance of ReportXmlError.
85 86 87 88 89 90 91 92 93 |
# File 'lib/adwords_api/errors.rb', line 85 def initialize(http_code, error_type, error_trigger, error_field_path) = "HTTP code: %d, error type: '%s', trigger: '%s', field path: '%s'" % [http_code, error_type, error_trigger, error_field_path] super(http_code, ) @type = error_type @trigger = error_trigger @field_path = error_field_path end |
Instance Attribute Details
#field_path ⇒ Object (readonly)
Returns the value of attribute field_path.
83 84 85 |
# File 'lib/adwords_api/errors.rb', line 83 def field_path @field_path end |
#trigger ⇒ Object (readonly)
Returns the value of attribute trigger.
83 84 85 |
# File 'lib/adwords_api/errors.rb', line 83 def trigger @trigger end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
83 84 85 |
# File 'lib/adwords_api/errors.rb', line 83 def type @type end |