private ModelAndView generateErrorView ( final String code , final Object [ ] args , final HttpServletRequest request , final WebApplicationService service ) { val modelAndView = serviceValidateConfigurationContext . getValidationViewFactory ( ) . getModelAndView ( request , false , service , getClass ( ) ) ; val convertedDescription = this . applicationContext . getMessage ( code , args , code , request . getLocale ( ) ) ; modelAndView . addObject ( CasViewConstants . MODEL_ATTRIBUTE_NAME_ERROR_CODE , StringEscapeUtils . escapeHtml4 ( code ) ) ; modelAndView . addObject ( CasViewConstants . MODEL_ATTRIBUTE_NAME_ERROR_DESCRIPTION , StringEscapeUtils . escapeHtml4 ( convertedDescription ) ) ; return modelAndView ; }
Generate error view .