refactor 优化工作流服务中的异常处理

This commit is contained in:
AprilWind
2025-12-02 18:42:18 +08:00
parent d9e5f86efa
commit 3be17bc145
4 changed files with 173 additions and 244 deletions

View File

@@ -42,7 +42,7 @@ public class DataBaseHelper {
String databaseProductName = metaData.getDatabaseProductName();
return DataBaseType.find(databaseProductName);
} catch (SQLException e) {
throw new ServiceException(e.getMessage());
throw new RuntimeException("获取数据库类型失败", e);
}
}