lib/roda/plugins/error_handler.rb
def call
          # RODA4: Remove
          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. Old Dispatch API.
If an error occurs, set the response status to 500 and call
the error handler. Old Dispatch API.
If an error occurs set the response status to 500 and call the error handler . Old Dispatch API .
def call
          begin
            res = super
          ensure
            _roda_after(res)
          end
        rescue *opts[:error_handler_classes] => e
          _handle_error(e)
        end
def call 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 .
# RODA4: Remove