method

rescue_error_with

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveSupport::Cache::MemCacheStore
rescue_error_with(fallback) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 299
        def rescue_error_with(fallback)
          yield
        rescue Dalli::DalliError => error
          ActiveSupport.error_reporter&.report(error, handled: true, severity: :warning)
          logger.error("DalliError (#{error}): #{error.message}") if logger
          fallback
        end
Register or log in to add new notes.