lib/roda/plugins/error_handler.rb
def _roda_handle_main_route
          begin
            res = super
          ensure
            _roda_after(res)
          end
        rescue *opts[:error_handler_classes] => e
          _handle_error(e)
        end
# If an error occurs, set the response status to 500 and call
# the error handler. 
If an error occurs, set the response status to 500 and call
the error handler.
If an error occurs set the response status to 500 and call the error handler .
def _roda_handle_main_route
          begin
            res = super
          ensure
            _roda_after(res)
          end
        rescue *opts[:error_handler_classes] => e
          _handle_error(e)
        end
def _roda_handle_main_route begin res = super ensure _roda_after ( res ) end rescue * opts [ :error_handler_classes ] => e _handle_error ( e ) end
If an error occurs, set the response status to 500 and call
the error handler.
If an error occurs set the response status to 500 and call the error handler .