Class ExceptionAdvice


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

      • ExceptionAdvice

        public ExceptionAdvice()
    • Method Detail

      • handleNotFound

        @ResponseStatus(NOT_FOUND)
        @ExceptionHandler(org.springframework.security.core.userdetails.UsernameNotFoundException.class)
        public void handleNotFound()
      • handleHttpMediaTypeNotAcceptableException

        @ResponseStatus(NOT_FOUND)
        @ExceptionHandler(org.springframework.web.HttpMediaTypeNotAcceptableException.class)
        public void handleHttpMediaTypeNotAcceptableException()
      • handleAllOther

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