Public Instance methods
_roda_handle_main_route()
If an error occurs, set the response status to 500 and call the error handler.
[show source]
# File lib/roda/plugins/error_handler.rb 88 def _roda_handle_main_route 89 begin 90 res = super 91 ensure 92 _roda_after(res) 93 end 94 rescue *self.class.error_handler_classes => e 95 _handle_error(e) 96 end
call()
If an error occurs, set the response status to 500 and call the error handler. Old Dispatch API.
[show source]
# File lib/roda/plugins/error_handler.rb 75 def call 76 # RODA4: Remove 77 begin 78 res = super 79 ensure 80 _roda_after(res) 81 end 82 rescue *self.class.error_handler_classes => e 83 _handle_error(e) 84 end