This commit is contained in:
Looly
2023-04-22 02:36:32 +08:00
parent 7387150f1a
commit 16e05bf9f5
108 changed files with 1244 additions and 857 deletions

View File

@@ -12,7 +12,7 @@
package org.dromara.hutool.db.ds;
import org.dromara.hutool.core.exceptions.CloneRuntimeException;
import org.dromara.hutool.core.exceptions.CloneException;
import org.dromara.hutool.core.io.IoUtil;
import org.dromara.hutool.core.func.Wrapper;
@@ -137,7 +137,7 @@ public class DSWrapper implements Wrapper<DataSource>, DataSource, Closeable, Cl
try {
return (DSWrapper) super.clone();
} catch (final CloneNotSupportedException e) {
throw new CloneRuntimeException(e);
throw new CloneException(e);
}
}
}

View File

@@ -12,7 +12,7 @@
package org.dromara.hutool.db.ds.simple;
import org.dromara.hutool.core.exceptions.CloneRuntimeException;
import org.dromara.hutool.core.exceptions.CloneException;
import javax.sql.DataSource;
import java.io.Closeable;
@@ -72,7 +72,7 @@ public abstract class AbstractDataSource implements DataSource, Cloneable, Close
try {
return (AbstractDataSource) super.clone();
} catch (final CloneNotSupportedException e) {
throw new CloneRuntimeException(e);
throw new CloneException(e);
}
}
}

View File

@@ -13,7 +13,7 @@
package org.dromara.hutool.db.sql;
import org.dromara.hutool.core.convert.Convert;
import org.dromara.hutool.core.exceptions.CloneRuntimeException;
import org.dromara.hutool.core.exceptions.CloneException;
import org.dromara.hutool.core.math.NumberUtil;
import org.dromara.hutool.core.text.StrUtil;
import org.dromara.hutool.core.text.split.SplitUtil;
@@ -381,7 +381,7 @@ public class Condition implements Cloneable, Serializable {
try {
return (Condition) super.clone();
} catch (final CloneNotSupportedException e) {
throw new CloneRuntimeException(e);
throw new CloneException(e);
}
}