Commit 156ec05e authored by tianbo's avatar tianbo

fix(workflow): 解决流程执行异常处理问题

- 添加了 BadRequest 异常的捕获和重新抛出 - 增加了通用 Exception 的错误日志记录
parent 88d4a185
...@@ -1031,6 +1031,10 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc ...@@ -1031,6 +1031,10 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
this.delRepeatUseEquipData(jgScrapCancel); this.delRepeatUseEquipData(jgScrapCancel);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} catch (BadRequest e) {
throw new BadRequest(e.getMessage());
} catch (Exception e) {
log.error("流程执行异常:{}", e);
} finally { } finally {
if (lock.isHeldByCurrentThread()) { if (lock.isHeldByCurrentThread()) {
lock.unlock(); lock.unlock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment