Class GenericErrorController

  • All Implemented Interfaces:
    org.springframework.boot.web.servlet.error.ErrorController

    @RestController
    public class GenericErrorController
    extends java.lang.Object
    implements org.springframework.boot.web.servlet.error.ErrorController
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericErrorController​(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map error​(java.lang.Boolean includeStackTrace, org.springframework.web.context.request.WebRequest webRequest)  
      java.lang.String getErrorPath()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericErrorController

        public GenericErrorController​(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
    • Method Detail

      • error

        @RequestMapping("/error")
        public java.util.Map error​(@RequestParam(value="trace",defaultValue="false")
                                   java.lang.Boolean includeStackTrace,
                                   org.springframework.web.context.request.WebRequest webRequest)
      • getErrorPath

        public java.lang.String getErrorPath()
        Specified by:
        getErrorPath in interface org.springframework.boot.web.servlet.error.ErrorController