Exception: SpreeCmCommissioner::ServiceFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spree_cm_commissioner/service_module_throwable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ServiceFailure

Returns a new instance of ServiceFailure.

Parameters:

  • error (Spree::ServiceModule::ResultError)


6
7
8
9
# File 'lib/spree_cm_commissioner/service_module_throwable.rb', line 6

def initialize(error)
  @error = error
  super(error.to_s)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



3
4
5
# File 'lib/spree_cm_commissioner/service_module_throwable.rb', line 3

def error
  @error
end