Module: Rubyception::ExceptionsCatcher
- Defined in:
- lib/rubyception/catcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 |
# File 'lib/rubyception/catcher.rb', line 2 def self.included base base.send :alias_method_chain, :render_exception, :rubyception end |
Instance Method Details
#render_exception_with_rubyception(env, exception) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/rubyception/catcher.rb', line 8 def render_exception_with_rubyception env, exception if Rubyception::WebsocketServer.current_entry Rubyception::WebsocketServer.current_entry.exception exception end render_exception_without_rubyception env, exception end |