mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 01:58:05 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user