Skip to content

Commit

Permalink
原始异常不能被丢弃.
Browse files Browse the repository at this point in the history
  • Loading branch information
bohrqiu committed Feb 16, 2016
1 parent d08cfbe commit 4b3ae92
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public class ShardingJdbcException extends RuntimeException {
public ShardingJdbcException(final String errorMessage, final Object... args) {
super(String.format(errorMessage, args));
}


public ShardingJdbcException(final String errorMessage,final Exception cause) {
super(errorMessage,cause);
}

public ShardingJdbcException(final Exception cause) {
super(cause);
}
Expand Down

1 comment on commit 4b3ae92

@bohrqiu
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

com.dangdang.ddframe.rdb.sharding.api.ShardingDataSource#getDatabaseMetaData方法中,如果建立连接失败,原始异常被丢弃。很难定位问题。

Please sign in to comment.