method
failsafe
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::Cache::RedisCacheStore
failsafe(method, returning: nil)private
No documentation available.
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 490
def failsafe(method, returning: nil)
yield
rescue ::Redis::BaseError, ConnectionPool::Error, ConnectionPool::TimeoutError => error
@error_handler&.call(method: method, exception: error, returning: returning)
returning
end