Class ExceptionHandlerAdvice

java.lang.Object
app.valuationcontrol.webservice.helpers.exceptions.ExceptionHandlerAdvice

@ControllerAdvice public class ExceptionHandlerAdvice extends Object
  • Constructor Details

    • ExceptionHandlerAdvice

      public ExceptionHandlerAdvice()
  • Method Details

    • handleException

      @ExceptionHandler(ResourceException.class) public org.springframework.http.ResponseEntity<String> handleException(ResourceException e)
    • handleAccessDeniedException

      @ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) public org.springframework.http.ResponseEntity<String> handleAccessDeniedException(org.springframework.security.access.AccessDeniedException e)
    • handleValidationErrors

      @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<Map<String,List<String>>> handleValidationErrors(org.springframework.web.bind.MethodArgumentNotValidException ex)