Class GlobalExceptionHandlers

java.lang.Object
app.valuationcontrol.webservice.securityhelpers.GlobalExceptionHandlers

@ControllerAdvice public class GlobalExceptionHandlers extends Object
  • Constructor Details

    • GlobalExceptionHandlers

      public GlobalExceptionHandlers()
  • Method Details

    • handleMethodArgumentNotValidException

      @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<List<org.springframework.validation.FieldError>> handleMethodArgumentNotValidException(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.bind.MethodArgumentNotValidException ex)
    • handleNullPointerException

      @ExceptionHandler(java.lang.NullPointerException.class) public org.springframework.http.ResponseEntity<String> handleNullPointerException(jakarta.servlet.http.HttpServletRequest request, NullPointerException exception)
    • handleSqlException

      @ExceptionHandler(org.springframework.dao.DataIntegrityViolationException.class) public org.springframework.http.ResponseEntity<Object> handleSqlException(org.springframework.dao.DataIntegrityViolationException ex)