Class: Spree::Api::ErrorHandler

Inherits:
Object
  • Object
show all
Includes:
ServiceModule::Base
Defined in:
app/services/spree/api/error_handler.rb

Instance Method Summary collapse

Instance Method Details

#call(exception:, opts: {}) ⇒ Object



6
7
8
9
10
# File 'app/services/spree/api/error_handler.rb', line 6

def call(exception:, opts: {})
  run :format_message
  run :log_error
  run :report_error
end