Skip to content

Commit 4b3ae92

Browse files
committed
原始异常不能被丢弃.
1 parent d08cfbe commit 4b3ae92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/exception/ShardingJdbcException.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public class ShardingJdbcException extends RuntimeException {
2929
public ShardingJdbcException(final String errorMessage, final Object... args) {
3030
super(String.format(errorMessage, args));
3131
}
32-
32+
33+
public ShardingJdbcException(final String errorMessage,final Exception cause) {
34+
super(errorMessage,cause);
35+
}
36+
3337
public ShardingJdbcException(final Exception cause) {
3438
super(cause);
3539
}

0 commit comments

Comments
 (0)