@ControllerAdvice(basePackageClasses=PsuAuthController.class) public class GenericControllerAdvice extends Object
Constructor and Description |
---|
GenericControllerAdvice() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<List<String>> |
handleException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleNoProtocolException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleUnauthorizedException(Exception ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleUserDoesNotExistException(PsuAuthenticationException ex) |
org.springframework.http.ResponseEntity<List<String>> |
handleUserExistsException(PsuRegisterException ex) |
@ExceptionHandler(value=PsuRegisterException.class) public org.springframework.http.ResponseEntity<List<String>> handleUserExistsException(PsuRegisterException ex)
@ExceptionHandler(value=PsuAuthenticationException.class) public org.springframework.http.ResponseEntity<List<String>> handleUserDoesNotExistException(PsuAuthenticationException ex)
@ExceptionHandler(value=PsuAuthorizationException.class) public org.springframework.http.ResponseEntity<List<String>> handleUnauthorizedException(Exception ex)
@ExceptionHandler(value=NoProtocolRegisteredException.class) public org.springframework.http.ResponseEntity<List<String>> handleNoProtocolException(Exception ex)
@ExceptionHandler(value=java.lang.RuntimeException.class) public org.springframework.http.ResponseEntity<List<String>> handleException(Exception ex)
Copyright © 2020. All rights reserved.