Skip to content

Commit 2260f2f

Browse files
committed
modify exception
1 parent dd40502 commit 2260f2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform-api/src/main/java/com/flow/platform/api/consumer/CmdCallbackQueueConsumer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.flow.platform.api.domain.CmdCallbackQueueItem;
2020
import com.flow.platform.api.service.job.JobService;
21+
import com.flow.platform.core.exception.FlowException;
2122
import com.flow.platform.core.exception.NotFoundException;
2223
import com.flow.platform.core.queue.PlatformQueue;
2324
import com.flow.platform.core.queue.PriorityMessage;
@@ -77,7 +78,7 @@ public void onQueueItem(PriorityMessage message) {
7778

7879
private void detectRetryTimes(CmdCallbackQueueItem item) {
7980
if (item.getRetryTimes() > RETRY_TIMES) {
80-
throw new NotFoundException(String.format("retry times has reach the limit"));
81+
throw new FlowException(String.format("retry times has reach the limit"));
8182
}
8283
}
8384

0 commit comments

Comments
 (0)