Exception: FastshopCatalog::ServiceException

Inherits:
Exception
  • Object
show all
Defined in:
lib/fastshop_catalog/service_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/fastshop_catalog/service_exception.rb', line 3

def code
  @code
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/fastshop_catalog/service_exception.rb', line 3

def description
  @description
end