Class GlobalExceptionHandler

java.lang.Object
dev.inspector.spring.interceptors.error.GlobalExceptionHandler

@ControllerAdvice public class GlobalExceptionHandler extends Object
  • Constructor Details

    • GlobalExceptionHandler

      public GlobalExceptionHandler()
  • Method Details

    • handleException

      @ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<String> handleException(Exception ex, javax.servlet.http.HttpServletRequest request)
    • handleNotFoundException

      @ExceptionHandler(org.springframework.web.servlet.NoHandlerFoundException.class) public org.springframework.http.ResponseEntity<String> handleNotFoundException(org.springframework.web.servlet.NoHandlerFoundException ex, javax.servlet.http.HttpServletRequest request)