Skip to content

Missing R2dbcExceptions mapping  #350

@pearlgupta2000

Description

@pearlgupta2000

In commit: https://github.com/jasync-sql/jasync-sql/pull/116/files#diff-48ac27ec5f7ffa2729c94453b580b09eed8a1a59e32d3836d52d83ba0e91d6b5, file: r2dbc-mysql/src/main/java/JasyncStatement.kt,

If MySQLException is catched, R2dbcTransientExceptions like R2dbcTimeoutException, R2dbcRollbackException and R2dbcTransientResourceException are not mapped properly because of which each of them falls in JasyncDatabaseException.

Because of which, springframework.r2dbc (org.springframework:spring-r2dbc v5.3.19) always throws them as UncategorizedR2dbcException, whereas in ideal case it should be throwing them as QueryTimeoutException, ConcurrencyFailureException and TransientDataAccessResourceException respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions