Class ExceptionHandlerAdvice


  • @ControllerAdvice
    public class ExceptionHandlerAdvice
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<Messages> handleAccessDeniedException​(javax.servlet.ServletRequest request, org.springframework.security.access.AccessDeniedException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleConstraintViolationException​(javax.validation.ConstraintViolationException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleException​(de.adorsys.multibanking.domain.exception.MultibankingException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleException​(ParametrizedMessageException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleException​(java.lang.Exception e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleException​(java.util.concurrent.CompletionException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleException​(org.kapott.hbci.exceptions.HBCI_Exception e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleHttpMessageNotReadableException​(org.springframework.http.converter.HttpMessageNotReadableException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleHttpRequestMethodNotSupportedException​(org.springframework.web.HttpRequestMethodNotSupportedException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleHttpStatusCodeException​(org.springframework.web.client.HttpStatusCodeException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleInvalidCheckDigitException​(org.iban4j.InvalidCheckDigitException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleMethodArgumentNotValidException​(org.springframework.web.bind.MethodArgumentNotValidException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleMethodArgumentTypeMismatchException​(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleMethodBindException​(org.springframework.validation.BindException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity<Messages> handleUnsatisfiedServletRequestParameterException​(org.springframework.web.bind.ServletRequestBindingException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionHandlerAdvice

        public ExceptionHandlerAdvice()
    • Method Detail

      • handleException

        @ResponseStatus
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleException​(java.lang.Exception e,
                                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleException​(org.kapott.hbci.exceptions.HBCI_Exception e,
                                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ResponseStatus(code=INTERNAL_SERVER_ERROR)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleException​(java.util.concurrent.CompletionException e,
                                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ResponseStatus
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleException​(de.adorsys.multibanking.domain.exception.MultibankingException e,
                                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • handleAccessDeniedException

        @ResponseStatus(code=FORBIDDEN)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleAccessDeniedException​(javax.servlet.ServletRequest request,
                                                                                             org.springframework.security.access.AccessDeniedException e,
                                                                                             org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ResponseStatus
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleException​(ParametrizedMessageException e,
                                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • handleHttpStatusCodeException

        @ResponseStatus
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleHttpStatusCodeException​(org.springframework.web.client.HttpStatusCodeException e,
                                                                                               org.springframework.web.method.HandlerMethod handlerMethod)
      • handleMethodArgumentTypeMismatchException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleMethodArgumentTypeMismatchException​(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e,
                                                                                                           org.springframework.web.method.HandlerMethod handlerMethod)
      • handleMethodArgumentNotValidException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleMethodArgumentNotValidException​(org.springframework.web.bind.MethodArgumentNotValidException ex,
                                                                                                       org.springframework.web.method.HandlerMethod handlerMethod)
      • handleMethodBindException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleMethodBindException​(org.springframework.validation.BindException ex,
                                                                                           org.springframework.web.method.HandlerMethod handlerMethod)
      • handleConstraintViolationException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleConstraintViolationException​(javax.validation.ConstraintViolationException e,
                                                                                                    org.springframework.web.method.HandlerMethod handlerMethod)
      • handleUnsatisfiedServletRequestParameterException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleUnsatisfiedServletRequestParameterException​(org.springframework.web.bind.ServletRequestBindingException ex,
                                                                                                                   org.springframework.web.method.HandlerMethod handlerMethod)
      • handleHttpMessageNotReadableException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleHttpMessageNotReadableException​(org.springframework.http.converter.HttpMessageNotReadableException ex,
                                                                                                       org.springframework.web.method.HandlerMethod handlerMethod)
      • handleHttpRequestMethodNotSupportedException

        @ResponseStatus(code=METHOD_NOT_ALLOWED)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleHttpRequestMethodNotSupportedException​(org.springframework.web.HttpRequestMethodNotSupportedException ex,
                                                                                                              org.springframework.web.method.HandlerMethod handlerMethod)
      • handleInvalidCheckDigitException

        @ResponseStatus(code=BAD_REQUEST)
        @ExceptionHandler
        @ResponseBody
        public org.springframework.http.ResponseEntity<Messages> handleInvalidCheckDigitException​(org.iban4j.InvalidCheckDigitException ex,
                                                                                                  org.springframework.web.method.HandlerMethod handlerMethod)