Exception: Source::ProductNotFoundError
- Inherits:
-
GeneralError
- Object
- StandardError
- GeneralError
- Source::ProductNotFoundError
- Defined in:
- lib/sources/source.rb
Instance Attribute Summary collapse
-
#product_code ⇒ Object
readonly
Returns the value of attribute product_code.
Attributes inherited from GeneralError
Instance Method Summary collapse
-
#initialize(message, source_keyname, product_code) ⇒ ProductNotFoundError
constructor
A new instance of ProductNotFoundError.
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(, source_keyname, product_code) super(, source_keyname) @product_code = product_code end |
Instance Attribute Details
#product_code ⇒ Object (readonly)
Returns the value of attribute product_code.
14 15 16 |
# File 'lib/sources/source.rb', line 14 def product_code @product_code end |