接口 ErrorAttributes

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      ThrowablegetError​(org.springframework.web.context.request.WebRequest webRequest)
      Return the underlying cause of the error or null if the error cannot be extracted.
      Map<String,​Object>getErrorAttributes​(org.springframework.web.context.request.WebRequest webRequest, boolean includeStackTrace)
      Returns a Map of the error attributes.
    • 方法详细资料

      • getErrorAttributes

        Map<String,​ObjectgetErrorAttributes​(org.springframework.web.context.request.WebRequest webRequest,
                                                    boolean includeStackTrace)
        Returns a Map of the error attributes. The map can be used as the model of an error page ModelAndView, or returned as a ResponseBody.
        参数:
        webRequest - the source request
        includeStackTrace - if stack trace elements should be included
        返回:
        a map of error attributes
      • getError

        Throwable getError​(org.springframework.web.context.request.WebRequest webRequest)
        Return the underlying cause of the error or null if the error cannot be extracted.
        参数:
        webRequest - the source request
        返回:
        the Exception that caused the error or null