Class GlobalControllerExceptionHandler


  • @ControllerAdvice
    @Order(-2147483648)
    public class GlobalControllerExceptionHandler
    extends Object
    • Constructor Detail

      • GlobalControllerExceptionHandler

        public GlobalControllerExceptionHandler()
    • Method Detail

      • handleException

        @ExceptionHandler(org.molgenis.data.UnknownDataException.class)
        public Object handleException​(org.molgenis.data.UnknownDataException e,
                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ExceptionHandler(org.molgenis.data.DataAlreadyExistsException.class)
        public Object handleException​(org.molgenis.data.DataAlreadyExistsException e,
                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ExceptionHandler(org.molgenis.i18n.BadRequestException.class)
        public Object handleException​(org.molgenis.i18n.BadRequestException e,
                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ExceptionHandler(org.molgenis.i18n.ForbiddenException.class)
        public Object handleException​(org.molgenis.i18n.ForbiddenException e,
                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • handleException

        @ExceptionHandler(org.molgenis.i18n.CodedRuntimeException.class)
        public Object handleException​(org.molgenis.i18n.CodedRuntimeException e,
                                      org.springframework.web.method.HandlerMethod handlerMethod)
      • handlePermissionDeniedException

        @ExceptionHandler
        public Object handlePermissionDeniedException​(org.molgenis.data.security.exception.PermissionDeniedException e,
                                                      org.springframework.web.method.HandlerMethod handlerMethod)