code: public static ModelAndView produceErrorView(final String view, final Exception e) {
          return new ModelAndView(view, CollectionUtils.wrap("rootCauseException", e));
      }
docs: Produce error view model and view.
  
  @param view the view
  @param e    the e
  @return the model and view