Class CustomErrorController

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

    @RestController() 
    public final class CustomErrorController
     implements ErrorController
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ResponseEntity<Map<String, Object>> handleError(HttpServletRequest request)
      • Methods inherited from class java.lang.Object

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

      • CustomErrorController

        CustomErrorController()
    • Method Detail

      • handleError

        @RequestMapping(value = {"/error"}) final ResponseEntity<Map<String, Object>> handleError(HttpServletRequest request)