update sa-token-core/src/main/java/cn/dev33/satoken/exception/SaTokenException.java.

https://gitee.com/dromara/sa-token/issues/I6CRPR
This commit is contained in:
AppleOfGray
2023-03-09 09:08:41 +00:00
committed by Gitee
parent e9d40e0e05
commit 8f3055c13f

View File

@@ -98,7 +98,7 @@ public class SaTokenException extends RuntimeException {
*/
public static void throwBy(boolean flag, String message, int code) {
if(flag) {
throw new SaTokenException(message);
throw new SaTokenException(message).setCode(code);
}
}