Class CustomErrorController

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

    @RestController
    @RequestMapping("/")
    public class CustomErrorController
    extends Object
    implements org.springframework.boot.web.servlet.error.ErrorController
    • Constructor Detail

      • CustomErrorController

        public CustomErrorController()
    • Method Detail

      • handleError

        @RequestMapping("/error")
        public org.springframework.http.ResponseEntity<ExceptionResponse> handleError​(javax.servlet.http.HttpServletRequest request)
      • getErrorPath

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