Browse Source

fix:增加创建模型实例异常处理

pull/41/head
xjf 1 month ago
parent
commit
187dc3d2c0
  1. 4
      yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/service/instant/InstantServiceImpl.java

4
yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/service/instant/InstantServiceImpl.java

@ -227,7 +227,7 @@ try{
return resultList; return resultList;
} catch (Exception e) { } catch (Exception e) {
log.error("模型实例创建失败,错误信息: ", e); log.error("模型实例创建失败,错误信息: ", e);
throw exception(CREATE_INSTANT_ERROR,"模型实例创建失败: " + e.getMessage(), e); throw exception(CREATE_INSTANT_ERROR,"模型实例创建失败: " + e.getMessage());
} }
} }
@ -276,7 +276,7 @@ try{
} }
} catch (Exception e) { } catch (Exception e) {
log.error("模型实例创建失败,错误信息: ", e); log.error("模型实例创建失败,错误信息: ", e);
throw exception(CREATE_INSTANT_ERROR,"模型实例创建失败: " + e.getMessage(), e); throw exception(CREATE_INSTANT_ERROR,"模型实例创建失败: " + e.getMessage());
} }
} }

Loading…
Cancel
Save