instance method
handle_exception
Ruby on Rails 6.0.6
Since v5.2.8.1 Last seen in v6.1.7.10 PrivateSignature
handle_exception(exception:, method:, returning:)
No documentation comment.
Parameters
-
exceptionkeyreq -
methodkeyreq -
returningkeyreq
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 484
def handle_exception(exception:, method:, returning:)
if @error_handler
@error_handler.(method: method, exception: exception, returning: returning)
end
rescue => failsafe
warn "RedisCacheStore ignored exception in handle_exception: #{failsafe.class}: #{failsafe.message}\n #{failsafe.backtrace.join("\n ")}"
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 484
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore