Exception: FastshopCatalog::ServiceException
- Inherits:
-
Exception
- Object
- Exception
- FastshopCatalog::ServiceException
- Defined in:
- lib/fastshop_catalog/service_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#description ⇒ Object
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ServiceException
constructor
A new instance of ServiceException.
Constructor Details
#initialize(params = {}) ⇒ ServiceException
Returns a new instance of ServiceException.
5 6 7 8 |
# File 'lib/fastshop_catalog/service_exception.rb', line 5 def initialize(params={}) @code = params[:code] @description = params[:description] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/fastshop_catalog/service_exception.rb', line 3 def code @code end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/fastshop_catalog/service_exception.rb', line 3 def description @description end |