Class GlobalExceptionHandlerController


  • @RestControllerAdvice(basePackages="de.adorsys.psd2.xs2a.web.controller")
    public class GlobalExceptionHandlerController
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity aspspProfileRestException​(de.adorsys.psd2.aspsp.profile.exception.AspspProfileRestException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity exception​(Exception ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity getTppIdException​(CertificateException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity httpMessageException​(org.springframework.http.converter.HttpMessageNotReadableException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity illegalArgumentException​(IllegalArgumentException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity mediaTypeNotSupportedException​(org.springframework.web.HttpMediaTypeNotAcceptableException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity methodArgumentTypeMismatchException​(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity requestBodyValidationException​(org.springframework.web.bind.MethodArgumentNotValidException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity resourceAccessException​(org.springframework.web.client.ResourceAccessException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity restException​(RestException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity servletRequestBindingException​(org.springframework.web.bind.ServletRequestBindingException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
      org.springframework.http.ResponseEntity validationException​(javax.validation.ValidationException ex, org.springframework.web.method.HandlerMethod handlerMethod)  
    • Constructor Detail

      • GlobalExceptionHandlerController

        public GlobalExceptionHandlerController()
    • Method Detail

      • validationException

        @ExceptionHandler(javax.validation.ValidationException.class)
        public org.springframework.http.ResponseEntity validationException​(javax.validation.ValidationException ex,
                                                                           org.springframework.web.method.HandlerMethod handlerMethod)
      • servletRequestBindingException

        @ExceptionHandler(org.springframework.web.bind.ServletRequestBindingException.class)
        public org.springframework.http.ResponseEntity servletRequestBindingException​(org.springframework.web.bind.ServletRequestBindingException ex,
                                                                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • httpMessageException

        @ExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException.class)
        public org.springframework.http.ResponseEntity httpMessageException​(org.springframework.http.converter.HttpMessageNotReadableException ex,
                                                                            org.springframework.web.method.HandlerMethod handlerMethod)
      • mediaTypeNotSupportedException

        @ExceptionHandler(org.springframework.web.HttpMediaTypeNotAcceptableException.class)
        public org.springframework.http.ResponseEntity mediaTypeNotSupportedException​(org.springframework.web.HttpMediaTypeNotAcceptableException ex,
                                                                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • exception

        @ExceptionHandler(java.lang.Exception.class)
        public org.springframework.http.ResponseEntity exception​(Exception ex,
                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • restException

        @ExceptionHandler(RestException.class)
        public org.springframework.http.ResponseEntity restException​(RestException ex,
                                                                     org.springframework.web.method.HandlerMethod handlerMethod)
      • aspspProfileRestException

        @ExceptionHandler(de.adorsys.psd2.aspsp.profile.exception.AspspProfileRestException.class)
        public org.springframework.http.ResponseEntity aspspProfileRestException​(de.adorsys.psd2.aspsp.profile.exception.AspspProfileRestException ex,
                                                                                 org.springframework.web.method.HandlerMethod handlerMethod)
      • resourceAccessException

        @ExceptionHandler(org.springframework.web.client.ResourceAccessException.class)
        public org.springframework.http.ResponseEntity resourceAccessException​(org.springframework.web.client.ResourceAccessException ex,
                                                                               org.springframework.web.method.HandlerMethod handlerMethod)
      • requestBodyValidationException

        @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class)
        public org.springframework.http.ResponseEntity requestBodyValidationException​(org.springframework.web.bind.MethodArgumentNotValidException ex,
                                                                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • methodArgumentTypeMismatchException

        @ExceptionHandler(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class)
        public org.springframework.http.ResponseEntity methodArgumentTypeMismatchException​(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException ex,
                                                                                           org.springframework.web.method.HandlerMethod handlerMethod)