|
@@ -1,6 +1,7 @@
|
|
|
package com.huimv.manager.exception;
|
|
|
|
|
|
import cn.dustlight.captcha.store.CodeNotExistsException;
|
|
|
+import cn.dustlight.captcha.verifier.VerifyFailException;
|
|
|
import com.huimv.manager.enums.AuthExceptionEnum;
|
|
|
import com.huimv.manager.result.R;
|
|
|
import org.slf4j.Logger;
|
|
@@ -55,6 +56,12 @@ public class RRExceptionHandler {
|
|
|
return R.error(AuthExceptionEnum.CONSTANT_EMPTY_ERROR.getMessage());
|
|
|
}
|
|
|
|
|
|
+ @ExceptionHandler(VerifyFailException.class)
|
|
|
+ public R handVerifyFailException(VerifyFailException e){
|
|
|
+ logger.error(e.getMessage(), e);
|
|
|
+ return R.error(AuthExceptionEnum.CONSTANT_EMPTY_ERROR.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
@ExceptionHandler(AuthException.class)
|
|
|
public R handAuthException(AuthException e){
|
|
|
logger.error(e.getMessage(), e);
|