module Blacksheep::Decorators::ErrorHandler
Public Instance Methods
call(*)
click to toggle source
Calls superclass method
# File lib/blacksheep/decorators/error_handler.rb, line 6 def call(*) super rescue => exception handle(exception) end
handle(exception)
click to toggle source
# File lib/blacksheep/decorators/error_handler.rb, line 18 def handle(exception) raise Blacksheep::Error, 'Subclass responsibility' end
perform(*)
click to toggle source
Calls superclass method
# File lib/blacksheep/decorators/error_handler.rb, line 12 def perform(*) super rescue => exception handle(exception) end