Skip to content

JedisUtils shouldn't wrap unknow Exception [DATAREDIS-82] #622

@spring-projects-issues

Description

@spring-projects-issues

Thomas Bruyelle opened DATAREDIS-82 and commented

The project I'm working on has 2 data access configuration, one with Spring-data-jpa, and an other with Spring-data-redis.

Since I added the JedisConnectionFactory as a Spring bean, one of my JPA-based junit failed because it attempts to catch a DataIntegrityViolationException. But instead this exception is wrapped into a JedisSystemException (see JedisUtils.convertJedisAccessException()).

When I read the code in ChainedPersistenceExceptionTranslator, I understand that a PersistenceExceptionTranslator that doesn't handle an exception should return null. So I think JedisUtils.convertJedisAccessException() should return null also in case of unhandled exception


Affects: 1.0.0 GA

Referenced from: commits bb9418b

1 votes, 2 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions