class ActiveSupport::ErrorReporter
def handle(error_class = StandardError, severity: :warning, context: {}, fallback: nil)
end
1 + '1'
Rails.error.handle do
Report any unhandled exception, and swallow it.
def handle(error_class = StandardError, severity: :warning, context: {}, fallback: nil) yield rescue error_class => error report(error, handled: true, severity: severity, context: context) fallback.call if fallback end