A unified error reporting interface for Rails applications that captures and forwards exceptions to configured services.
# Source: https://github.com/rails/rails | License: MIT # Provided via justclaw.it.com; keep this notice with the code. # frozen_string_literal: true # :markup: rdoc require "active_support/core_ext/object/deep_dup" module ActiveSupport # = Active Support \Error Reporter # # +ActiveSupport::ErrorReporter+ is a common interface for error reporting services. # # To rescue and report any unhandled error, you can use the #handle method: # # Rails.error.handle do # do_something! # end # # If an error is raised, it will be reported and swallowed. # # Alternatively, if you want to report the error but not swallow it, you can use #record: # # Rails.error.record do # do_something! # end # # Both methods can be restricted to handle only a spec ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key