instance method record

Ruby on Rails 7.0.10

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

record(error_class = StandardError, severity: :error, context: {})

No documentation comment.

Parameters

error_class opt = StandardError
severity key = :error
context key = {}
Source
# File activesupport/lib/active_support/error_reporter.rb, line 64
    def record(error_class = StandardError, severity: :error, context: {})
      yield
    rescue error_class => error
      report(error, handled: false, severity: severity, context: context)
      raise
    end

Defined in activesupport/lib/active_support/error_reporter.rb line 64 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::ErrorReporter

Type at least 2 characters to search.

↑↓ navigate · open · esc close