java.lang.Object
de.digitalcollections.cudami.server.controller.advice.ExceptionAdvice

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

    Constructors 
    Constructor Description
    ExceptionAdvice()  
  • Method Summary

    Modifier and Type Method Description
    void handleAllOther​(java.lang.Exception exception)  
    void handleHttpMediaTypeNotAcceptableException()  
    void handleNotFound()  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • 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)