Class GlobalExceptionHandler


  • @ControllerAdvice
    public class GlobalExceptionHandler
    extends Object
    global exception handler
    Author:
    Nacos
    • Constructor Detail

      • GlobalExceptionHandler

        public GlobalExceptionHandler()
    • Method Detail

      • handleDataAccessException

        @ExceptionHandler(org.springframework.dao.DataAccessException.class)
        public void handleDataAccessException​(javax.servlet.http.HttpServletResponse response,
                                              org.springframework.dao.DataAccessException ex)
                                       throws org.springframework.dao.DataAccessException
        For DataAccessException
        Throws:
        org.springframework.dao.DataAccessException