Browse Source

REPORT-132842 【fr-fbp回归】【数据集】fbp工程 新增数据连接,什么都不设置,直接保存失败

fbp/release
Destiny.Lin 3 months ago
parent
commit
2634ecbde6
  1. 12
      designer-base/src/main/java/com/fr/design/data/datapane/connect/LocalConnectionSource.java

12
designer-base/src/main/java/com/fr/design/data/datapane/connect/LocalConnectionSource.java

@ -65,6 +65,12 @@ public class LocalConnectionSource extends BaseConnectionSource {
ConnectionProcessorFactory.addConnection(bean);
} catch (DriverNotFoundException e) {
throw new DriverUnExistException();
} catch (RuntimeException e) {
if (e.getCause() instanceof DriverNotFoundException) {
throw new DriverUnExistException();
} else {
throw e;
}
}
}
@ -82,6 +88,12 @@ public class LocalConnectionSource extends BaseConnectionSource {
ConnectionProcessorFactory.updateConnection(bean.getConnectionName(), bean);
} catch (DriverNotFoundException e) {
throw new DriverUnExistException();
} catch (RuntimeException e) {
if (e.getCause() instanceof DriverNotFoundException) {
throw new DriverUnExistException();
} else {
throw e;
}
}
}

Loading…
Cancel
Save