method

call

rails latest stable - Class: ActionDispatch::Rescue

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

call(env)
public

No documentation available.

# File actionpack/lib/action_dispatch/middleware/rescue.rb, line 9
    def call(env)
      @app.call(env)
    rescue Exception => exception
      if rescuer = @rescuers[exception.class.name]
        env['action_dispatch.rescue.exception'] = exception
        rescuer.call(env)
      else
        raise exception
      end
    end