@ControllerAdvice(basePackageClasses={DocumentController.class,InboxController.class,UserController.class,VersionController.class,AuthenticateController.class})
public class GenericControllerAdvice
extends Object
| Constructor and Description |
|---|
GenericControllerAdvice() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<List<String>> |
handleBadCredentialsException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleFileNotFoundException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleUnauthorizedException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleUserDoesNotExistsException(UserDoesNotExistsException ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleUserExistsException(UserExistsException ex) |
@ExceptionHandler(value=UserDoesNotExistsException.class) public org.springframework.http.ResponseEntity<List<String>> handleUserDoesNotExistsException(UserDoesNotExistsException ex)
@ExceptionHandler(value=UserExistsException.class) public org.springframework.http.ResponseEntity<List<String>> handleUserExistsException(UserExistsException ex)
@ExceptionHandler(value=com.amazonaws.services.s3.model.AmazonS3Exception.class) public org.springframework.http.ResponseEntity<List<String>> handleFileNotFoundException(Exception ex)
@ExceptionHandler(value={UnauthorizedException.class,org.springframework.security.authentication.BadCredentialsException.class})
@ResponseStatus(value=UNAUTHORIZED,
reason="Access Denied")
public org.springframework.http.ResponseEntity<List<String>> handleUnauthorizedException(Exception ex)
@ExceptionHandler(value={java.security.UnrecoverableKeyException.class,javax.crypto.BadPaddingException.class})
@ResponseStatus(value=FORBIDDEN,
reason="Access Denied")
public org.springframework.http.ResponseEntity<List<String>> handleBadCredentialsException(Exception ex)
@ExceptionHandler(value=java.lang.RuntimeException.class) public org.springframework.http.ResponseEntity<List<String>> handleException(Exception ex)
Copyright © 2020. All rights reserved.