Skip to content

Fix DataSourceUtils inconsistent exception handling#28669

Closed
kevin0x90 wants to merge 1 commit intospring-projects:5.3.xfrom
kevin0x90:bugfix/gh-28258
Closed

Fix DataSourceUtils inconsistent exception handling#28669
kevin0x90 wants to merge 1 commit intospring-projects:5.3.xfrom
kevin0x90:bugfix/gh-28258

Conversation

@kevin0x90
Copy link
Copy Markdown
Contributor

Align IllegalStateException with SQLException handling since IllegalState is only handled internally and the public facing Exception remains unchanged in either way.

Closes gh-28258

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 21, 2022
Copy link
Copy Markdown
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

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

Thanks for the PR but I don't think we should be changing the nested cause the way you suggest.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jun 21, 2022
@sbrannen sbrannen added in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement and removed status: waiting-for-feedback We need additional information before we can continue labels Jun 21, 2022
@kevin0x90 kevin0x90 force-pushed the bugfix/gh-28258 branch 2 times, most recently from fb24abf to e291a4d Compare June 22, 2022 19:04
@kevin0x90 kevin0x90 changed the base branch from main to 5.3.x June 22, 2022 19:06
Align IllegalStateException with SQLException handling and propagate the original exception

Closes spring-projectsgh-28258
@snicoll snicoll removed the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 23, 2022
@snicoll snicoll added this to the 5.3.22 milestone Jun 23, 2022
@snicoll snicoll self-assigned this Jun 23, 2022
snicoll pushed a commit that referenced this pull request Jun 23, 2022
Align IllegalStateException with SQLException handling and propagate
the original exception.

See gh-28669

Co-authored-by: Christoph Mies <[email protected]>
@snicoll snicoll closed this in 5639ff0 Jun 23, 2022
@snicoll
Copy link
Copy Markdown
Member

snicoll commented Jun 23, 2022

Good stuff, thanks @kevin0x90 and @Suthman.

@kevin0x90
Copy link
Copy Markdown
Contributor Author

Thanks for accepting our small contribution @snicoll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataSourceUtils discards IllegalStateException stacktrace

5 participants