method

error

v7.1.3.4 - Show latest stable - Class: Rails
error()
public

Returns the ActiveSupport::ErrorReporter of the current Rails project, otherwise it returns nil if there is no project.

Rails.error.handle(IOError) do
  # ...
end
Rails.error.report(error)