Class GenericControllerAdvice
java.lang.Object
de.adorsys.datasafe.rest.impl.controller.GenericControllerAdvice
@ControllerAdvice(basePackageClasses={DocumentController.class,InboxController.class,UserController.class,VersionController.class,AuthenticateController.class})
public class GenericControllerAdvice
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
GenericControllerAdvice
public GenericControllerAdvice()
-
-
Method Details
-
handleUserDoesNotExistsException
@ExceptionHandler(UserDoesNotExistsException.class) public org.springframework.http.ResponseEntity<List<String>> handleUserDoesNotExistsException(UserDoesNotExistsException ex) -
handleUserExistsException
@ExceptionHandler(UserExistsException.class) public org.springframework.http.ResponseEntity<List<String>> handleUserExistsException(UserExistsException ex) -
handleFileNotFoundException
-
handleUnauthorizedException
@ExceptionHandler({UnauthorizedException.class,org.springframework.security.authentication.BadCredentialsException.class}) @ResponseStatus(value=UNAUTHORIZED, reason="Access Denied") public org.springframework.http.ResponseEntity<List<String>> handleUnauthorizedException(Exception ex) -
handleBadCredentialsException
@ExceptionHandler({java.security.UnrecoverableKeyException.class,javax.crypto.BadPaddingException.class}) @ResponseStatus(value=FORBIDDEN, reason="Access Denied") public org.springframework.http.ResponseEntity<List<String>> handleBadCredentialsException(Exception ex) -
handleException
@ExceptionHandler(java.lang.RuntimeException.class) public org.springframework.http.ResponseEntity<List<String>> handleException(Exception ex)
-