diff --git a/luoo_common/src/main/java/util/IdWorker.java b/luoo_common/src/main/java/util/IdWorker.java index c32da18..f40451a 100644 --- a/luoo_common/src/main/java/util/IdWorker.java +++ b/luoo_common/src/main/java/util/IdWorker.java @@ -80,7 +80,7 @@ public class IdWorker { public synchronized long nextId() { long timestamp = timeGen(); if (timestamp < lastTimestamp) { - throw new BizException(String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", lastTimestamp - timestamp)); + throw new RuntimeException(String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", lastTimestamp - timestamp)); } if (lastTimestamp == timestamp) {