Exception: BigCommerceProductError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, scope, message, product_identifier, data, original_error) ⇒ BigCommerceProductError

Returns a new instance of BigCommerceProductError.



4
5
6
7
8
9
10
11
12
# File 'lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb', line 4

def initialize(status, scope, message, product_identifier, data, original_error)
  @status = status
  @scope = scope
  @product_identifier = product_identifier
  @data = data
  @original_error = original_error

  super(message)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



2
3
4
# File 'lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb', line 2

def data
  @data
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



2
3
4
# File 'lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb', line 2

def original_error
  @original_error
end

#product_identifierObject (readonly)

Returns the value of attribute product_identifier.



2
3
4
# File 'lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb', line 2

def product_identifier
  @product_identifier
end

#scopeObject (readonly)

Returns the value of attribute scope.



2
3
4
# File 'lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb', line 2

def scope
  @scope
end

#statusObject (readonly)

Returns the value of attribute status.



2
3
4
# File 'lib/huginn_bigcommerce_product_agent/big_commerce_product_error.rb', line 2

def status
  @status
end