Class ExceptionAdvice
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.advice.ExceptionAdvice
-
@ControllerAdvice public class ExceptionAdvice extends Object
-
-
Constructor Summary
Constructors Constructor Description ExceptionAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleAllOther(Exception exception)voidhandleConflict(ConflictException exception)voidhandleHttpMediaTypeNotAcceptableException()voidhandleNotFound()voidhandleValidationException(ValidationException exception)
-
-
-
Method Detail
-
handleAllOther
@ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler(java.lang.Exception.class) public void handleAllOther(Exception exception)
-
handleConflict
@ResponseStatus(CONFLICT) @ExceptionHandler(de.digitalcollections.cudami.server.business.api.service.exceptions.ConflictException.class) public void handleConflict(ConflictException exception)
-
handleHttpMediaTypeNotAcceptableException
@ResponseStatus(NOT_FOUND) @ExceptionHandler(org.springframework.web.HttpMediaTypeNotAcceptableException.class) public void handleHttpMediaTypeNotAcceptableException()
-
handleNotFound
@ResponseStatus(NOT_FOUND) @ExceptionHandler(org.springframework.security.core.userdetails.UsernameNotFoundException.class) public void handleNotFound()
-
handleValidationException
@ResponseStatus(UNPROCESSABLE_ENTITY) @ExceptionHandler(de.digitalcollections.cudami.server.business.api.service.exceptions.ValidationException.class) public void handleValidationException(ValidationException exception)
-
-