From 242fad1691917c4fd82c7f04b6190a7113628e93 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期五, 11 三月 2022 15:31:04 +0800 Subject: [PATCH] Merge branch 'pollex-dev' into sit --- pamapi/src/main/java/com/pollex/pam/web/rest/errors/ExceptionTranslator.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/errors/ExceptionTranslator.java b/pamapi/src/main/java/com/pollex/pam/web/rest/errors/ExceptionTranslator.java index e59e428..5c00cba 100644 --- a/pamapi/src/main/java/com/pollex/pam/web/rest/errors/ExceptionTranslator.java +++ b/pamapi/src/main/java/com/pollex/pam/web/rest/errors/ExceptionTranslator.java @@ -9,6 +9,9 @@ import javax.annotation.Nonnull; import javax.annotation.Nullable; import javax.servlet.http.HttpServletRequest; + +import com.pollex.pam.business.service.UsernameAlreadyUsedException; +import com.pollex.pam.business.web.errors.*; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.env.Environment; @@ -117,7 +120,7 @@ @ExceptionHandler public ResponseEntity<Problem> handleEmailAlreadyUsedException( - com.pollex.pam.service.EmailAlreadyUsedException ex, + com.pollex.pam.business.service.EmailAlreadyUsedException ex, NativeWebRequest request ) { EmailAlreadyUsedException problem = new EmailAlreadyUsedException(); @@ -130,7 +133,7 @@ @ExceptionHandler public ResponseEntity<Problem> handleUsernameAlreadyUsedException( - com.pollex.pam.service.UsernameAlreadyUsedException ex, + UsernameAlreadyUsedException ex, NativeWebRequest request ) { LoginAlreadyUsedException problem = new LoginAlreadyUsedException(); @@ -143,7 +146,7 @@ @ExceptionHandler public ResponseEntity<Problem> handleInvalidPasswordException( - com.pollex.pam.service.InvalidPasswordException ex, + com.pollex.pam.business.service.InvalidPasswordException ex, NativeWebRequest request ) { return create(new InvalidPasswordException(), request); -- Gitblit v1.8.0