Class ExceptionAdvice
java.lang.Object
de.digitalcollections.cudami.server.controller.advice.ExceptionAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAllOther(Exception exception) voidhandleConflict(ConflictException exception) voidvoidorg.springframework.http.ResponseEntity<Object>handleValidationException(de.digitalcollections.model.validation.ValidationException exception)
-
Constructor Details
-
ExceptionAdvice
public ExceptionAdvice()
-
-
Method Details
-
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({de.digitalcollections.cudami.server.business.api.service.exceptions.ResourceNotFoundException.class,org.springframework.security.core.userdetails.UsernameNotFoundException.class}) public void handleNotFound() -
handleValidationException
@ExceptionHandler(de.digitalcollections.model.validation.ValidationException.class) public org.springframework.http.ResponseEntity<Object> handleValidationException(de.digitalcollections.model.validation.ValidationException exception)
-