|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|