Class: AdwordsApi::Errors::ReportXmlError

Inherits:
ReportError
  • Object
show all
Defined in:
lib/adwords_api/errors.rb

Overview

Error for server-side report XML error.

Instance Attribute Summary collapse

Attributes inherited from ReportError

#http_code

Instance Method Summary collapse

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)
  message =
      "HTTP code: %d, error type: '%s', trigger: '%s', field path: '%s'" %
      [http_code, error_type, error_trigger, error_field_path]
  super(http_code, message)
  @type = error_type
  @trigger = error_trigger
  @field_path = error_field_path
end

Instance Attribute Details

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

#triggerObject (readonly)

Returns the value of attribute trigger.



83
84
85
# File 'lib/adwords_api/errors.rb', line 83

def trigger
  @trigger
end

#typeObject (readonly)

Returns the value of attribute type.



83
84
85
# File 'lib/adwords_api/errors.rb', line 83

def type
  @type
end