method

rescue_from_callback

rails latest stable - Class: ActionController::StructuredEventSubscriber

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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