method
rescue_error_with
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore
rescue_error_with(fallback)private
No documentation available.
# 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