Class UserControllerAdvice
java.lang.Object
com.winchesters.devopsify.controller.GeneralControllerAdviceImpl
com.winchesters.devopsify.controller.user.UserControllerAdvice
- All Implemented Interfaces:
GeneralControllerAdvice
@Order(-2147483648)
@ControllerAdvice(assignableTypes=UserController.class)
public class UserControllerAdvice
extends GeneralControllerAdviceImpl
-
Field Summary
Fields inherited from interface com.winchesters.devopsify.controller.GeneralControllerAdvice
LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ErrorResponseDto>
handleInvalidEmailException
(InvalidEmailException exception) org.springframework.http.ResponseEntity<ErrorResponseDto>
org.springframework.http.ResponseEntity<ErrorResponseDto>
org.springframework.http.ResponseEntity<ErrorResponseDto>
handleUserNotFoundException
(UserNotFoundException exception) Methods inherited from class com.winchesters.devopsify.controller.GeneralControllerAdviceImpl
handleBadRequest, handleException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.winchesters.devopsify.controller.GeneralControllerAdvice
handleException
-
Constructor Details
-
UserControllerAdvice
public UserControllerAdvice()
-
-
Method Details
-
handleInvalidEmailException
@ExceptionHandler(InvalidEmailException.class) public org.springframework.http.ResponseEntity<ErrorResponseDto> handleInvalidEmailException(InvalidEmailException exception) -
handleInvalidUsernameException
@ExceptionHandler(InvalidUsernameException.class) public org.springframework.http.ResponseEntity<ErrorResponseDto> handleInvalidUsernameException(InvalidUsernameException exception) -
handleUserNotAuthenticatedException
@ExceptionHandler(UserNotAuthenticatedException.class) public org.springframework.http.ResponseEntity<ErrorResponseDto> handleUserNotAuthenticatedException(UserNotAuthenticatedException exception) -
handleUserNotFoundException
@ExceptionHandler(UserNotFoundException.class) public org.springframework.http.ResponseEntity<ErrorResponseDto> handleUserNotFoundException(UserNotFoundException exception)
-