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

Merge pull request !237 from AppleOfGray/N/A
This commit is contained in:
孔明
2023-03-09 09:09:34 +00:00
committed by Gitee

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);
}
}