@ControllerAdvice public class GenericControllerAdvice extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GenericControllerAdvice.OAuth2Error |
Constructor and Description |
---|
GenericControllerAdvice() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<GenericControllerAdvice.OAuth2Error> |
handleOauth2Errors(Exception ex) |
org.springframework.http.ResponseEntity<GenericControllerAdvice.OAuth2Error> |
handleOauth2UnauthorizedErrors(Exception ex) |
@ExceptionHandler(value={EmailNotVerified.class,EmailNotAllowed.class}) public org.springframework.http.ResponseEntity<GenericControllerAdvice.OAuth2Error> handleOauth2Errors(Exception ex)
@ExceptionHandler(value=Oauth2UnauthorizedException.class) public org.springframework.http.ResponseEntity<GenericControllerAdvice.OAuth2Error> handleOauth2UnauthorizedErrors(Exception ex)
Copyright © 2020. All rights reserved.