Class ExceptionAdvice
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleAllOther(java.lang.Exception exception)voidhandleHttpMediaTypeNotAcceptableException()voidhandleNotFound()
-
-
-
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)
-
-