instance method
record
Ruby on Rails 7.0.10
Since v7.0.10Signature
record(error_class = StandardError, severity: :error, context: {})
No documentation comment.
Parameters
-
error_classopt = StandardError -
severitykey = :error -
contextkey = {}
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