Fix DataSourceUtils inconsistent exception handling

CannotGetJdbcConnectionException can take SQLException as well as IllegalStateException as cause.The public facing Exception remains unchanged in either way. This Pull Request is a continuation of the pull request https://github.com/spring-projects/spring-framework/pull/28669

Closes gh-28258

Comment From: snicoll

Thanks for the PR @Suthman but the original reporter already confirmed they're going to update their original proposal.

Comment From: Suthman

Hi snicoll, sorry for my late answer.

@kevin0x90 and I did the work yesterday together, and he asked me to complete our work today.

I ask Kevin to confirm this in this thread.

Comment From: kevin0x90

I can confirm what @Suthman writes

Comment From: kevin0x90

i have updated the already open pr

Comment From: snicoll

@Suthman OK, I see. We can't really merge this PR as part of the code was already submitted by Kevin and they're the one signing the CLA. Thanks for updating the existing PR Kevin.