Exception: Source::ProductNotFoundError

Inherits:
GeneralError
  • Object
show all
Defined in:
lib/sources/source.rb

Instance Attribute Summary collapse

Attributes inherited from GeneralError

#source_keyname

Instance Method Summary collapse

Constructor Details

#initialize(message, source_keyname, product_code) ⇒ ProductNotFoundError

Returns a new instance of ProductNotFoundError.



15
16
17
18
# File 'lib/sources/source.rb', line 15

def initialize(message, source_keyname, product_code)
  super(message, source_keyname)
  @product_code = product_code
end

Instance Attribute Details

#product_codeObject (readonly)

Returns the value of attribute product_code.



14
15
16
# File 'lib/sources/source.rb', line 14

def product_code
  @product_code
end