method
rescue_from_callback
rails latest stable - Class:
ActionController::StructuredEventSubscriber
rescue_from_callback(event)public
No documentation available.
# File actionpack/lib/action_controller/structured_event_subscriber.rb, line 47
def rescue_from_callback(event)
exception = event.payload[:exception]
emit_event("action_controller.rescue_from_handled",
exception_class: exception.class.name,
exception_message: exception.message,
exception_backtrace: exception.backtrace&.first&.delete_prefix("#{Rails.root}/")
)
end