Class GlobalExceptionHandlers
java.lang.Object
app.valuationcontrol.webservice.securityhelpers.GlobalExceptionHandlers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<org.springframework.validation.FieldError>> handleMethodArgumentNotValidException(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.bind.MethodArgumentNotValidException ex) org.springframework.http.ResponseEntity<String> handleNullPointerException(jakarta.servlet.http.HttpServletRequest request, NullPointerException exception) org.springframework.http.ResponseEntity<Object> handleSqlException(org.springframework.dao.DataIntegrityViolationException ex)
-
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)
-