module RescueRegistry
This is for use in non-Rails Rack apps. Rails apps will handle exceptions with ActionDispatch::DebugExceptions
and ActionDispatch::ShowExceptions
Constants
- REGISTRY_METHODS
- VERSION
Public Class Methods
context()
click to toggle source
# File lib/rescue_registry.rb, line 19 def self.context Thread.current[:rescue_registry_context] end
context=(value)
click to toggle source
# File lib/rescue_registry.rb, line 23 def self.context=(value) Thread.current[:rescue_registry_context] = value end
with_context(value) { || ... }
click to toggle source
# File lib/rescue_registry.rb, line 27 def self.with_context(value) original = context self.context = value yield ensure self.context = original end