Sha256: e59e298d21091968bad95a6f04d302947a2f756931d6a320278d25e5ca55e61c
Contents?: true
Size: 623 Bytes
Versions: 13
Compression:
Stored size: 623 Bytes
Contents
module SolidusSixSaferpay class ErrorHandler # Use a custom error handler so that host applications can configure their # error handling def self.handle(error, level: :error) Rails.logger.send(level, error) Configuration.error_handlers.each do |handler| if !handler.respond_to?(:call) Rails.logger.warn("SolidusSixSaferpay::Configuration ERROR: The attached error handler #{handler} can not be called with #{handler}.call(error, level: level)") # skip to next handler next end handler.call(error, level: level) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems