Class ExceptionAdvice


  • @ControllerAdvice
    public class ExceptionAdvice
    extends java.lang.Object
    • Constructor Detail

      • ExceptionAdvice

        public ExceptionAdvice()
    • Method Detail

      • handleInvalidParametersException

        @ResponseStatus(BAD_REQUEST)
        @ExceptionHandler(InvalidParametersException.class)
        public void handleInvalidParametersException​(java.lang.Exception exception)
      • handleResolvingException

        @ResponseStatus(NOT_FOUND)
        @ExceptionHandler(ResolvingException.class)
        public void handleResolvingException​(java.lang.Exception exception)
      • handleResourceNotFoundException

        @ResponseStatus(NOT_FOUND)
        @ExceptionHandler(de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException.class)
        public void handleResourceNotFoundException​(java.lang.Exception exception)
      • handleUnsupportedFormatException

        @ResponseStatus(UNSUPPORTED_MEDIA_TYPE)
        @ExceptionHandler(UnsupportedFormatException.class)
        public void handleUnsupportedFormatException​(java.lang.Exception exception)
      • handleUnsupportedOperationException

        @ResponseStatus(BAD_REQUEST)
        @ExceptionHandler(java.lang.UnsupportedOperationException.class)
        public void handleUnsupportedOperationException​(java.lang.Exception exception)
      • handleAllOther

        @ResponseStatus(INTERNAL_SERVER_ERROR)
        @ExceptionHandler(java.lang.Exception.class)
        public void handleAllOther​(java.lang.Exception exception)