Skip to content

Add R2DBC-specific exception translation #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mp911de opened this issue Feb 5, 2019 · 3 comments
Closed

Add R2DBC-specific exception translation #57

mp911de opened this issue Feb 5, 2019 · 3 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@mp911de
Copy link
Member

mp911de commented Feb 5, 2019

Right now, we're using Spring Framework's JDBC module to apply exception translation. Spring JDBC is heavily based on JDBC API and it makes little sense to pull JDBC API into R2DBC, especially when running in modularized Java 9+ environments.

We should provide our own exception translation mechanism that is built along the lines of Spring JDBC's SQLErrorCodes without using JDBC API.

@mp911de mp911de added the type: enhancement A general enhancement label Feb 5, 2019
@mp911de
Copy link
Member Author

mp911de commented Feb 19, 2019

See SPR-17618 (#22150).

@mp911de
Copy link
Member Author

mp911de commented Mar 25, 2019

R2DBC decided to introduce an exception hierarchy that simplifies exception translation for client libraries. We're going to adopt subclass-based exception translation once that's in place.

See r2dbc/r2dbc-spi#47.

@mp911de mp911de added the status: blocked An issue that's blocked on an external project change label Mar 25, 2019
@mp911de mp911de removed the status: blocked An issue that's blocked on an external project change label Apr 18, 2019
@mp911de mp911de added this to the 1.0 M2 milestone Apr 18, 2019
mp911de added a commit that referenced this issue Apr 18, 2019
mp911de added a commit that referenced this issue Apr 18, 2019
We now use R2DBC's exception hierarchy to translate exceptions into Spring's DataAccessException hierarchy.
@schauder schauder assigned mp911de and unassigned schauder Apr 23, 2019
schauder pushed a commit that referenced this issue Apr 24, 2019
We now use R2DBC's exception hierarchy to translate exceptions into Spring's DataAccessException hierarchy.

Original pull request: #97.
schauder added a commit that referenced this issue Apr 24, 2019
@schauder
Copy link
Contributor

Done.

schauder added a commit that referenced this issue Apr 30, 2019
schauder added a commit that referenced this issue Apr 30, 2019
schauder added a commit that referenced this issue May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants