Sha256: 3c236f2afcb2c076937831cd6bc60a79af3812906e0477501f4484057bc558d2
Contents?: true
Size: 677 Bytes
Versions: 26
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true require 'active_support/concern' require 'active_support/core_ext/module/delegation.rb' module ExceptionHandling module LoggingMethods # included on models and controllers extend ActiveSupport::Concern protected delegate :log_error_rack, :log_warning, :log_info, :log_debug, :escalate_error, :escalate_warning, :ensure_escalation, :alert_warning, :log_error, to: ExceptionHandling def ensure_safe(exception_context = "") yield rescue => ex log_error ex, exception_context nil end def ensure_alert(*args) ExceptionHandling.ensure_alert(*args) do yield end end end end
Version data entries
26 entries across 26 versions & 1 rubygems