Package com.evolveum.midpoint.rest.impl
Class RestExceptionHandler
java.lang.Object
com.evolveum.midpoint.rest.impl.RestExceptionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
badRequestHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
badRequestHandlerShowingMostSpecificCause
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
defaultHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) org.springframework.http.ResponseEntity<?>
forbiddenHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
handleResponseStatusException
(org.springframework.web.server.ResponseStatusException ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
methodNotAllowedHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
notAcceptableHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
serviceUnavailableHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
unauthorizedHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
unsupportedMediaTypeHandler
(Exception ex, jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
RestExceptionHandler
public RestExceptionHandler()
-
-
Method Details
-
badRequestHandler
@ExceptionHandler({java.lang.IllegalArgumentException.class,org.springframework.web.bind.ServletRequestBindingException.class,org.springframework.beans.TypeMismatchException.class,org.springframework.web.bind.MethodArgumentNotValidException.class}) public org.springframework.http.ResponseEntity<?> badRequestHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
badRequestHandlerShowingMostSpecificCause
@ExceptionHandler({org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.web.bind.MissingServletRequestParameterException.class}) public org.springframework.http.ResponseEntity<?> badRequestHandlerShowingMostSpecificCause(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
unauthorizedHandler
@ExceptionHandler(javax.naming.AuthenticationException.class) public org.springframework.http.ResponseEntity<?> unauthorizedHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
forbiddenHandler
@ExceptionHandler(java.nio.file.AccessDeniedException.class) public org.springframework.http.ResponseEntity<?> forbiddenHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
methodNotAllowedHandler
@ExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException.class) public org.springframework.http.ResponseEntity<?> methodNotAllowedHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
notAcceptableHandler
@ExceptionHandler(org.springframework.web.HttpMediaTypeNotAcceptableException.class) public org.springframework.http.ResponseEntity<?> notAcceptableHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
unsupportedMediaTypeHandler
@ExceptionHandler(org.springframework.web.HttpMediaTypeNotSupportedException.class) public org.springframework.http.ResponseEntity<?> unsupportedMediaTypeHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request) -
handleResponseStatusException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) public org.springframework.http.ResponseEntity<?> handleResponseStatusException(org.springframework.web.server.ResponseStatusException ex, jakarta.servlet.http.HttpServletRequest request) -
defaultHandler
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<?> defaultHandler(Exception ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-