Skip to content
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

CqlTemplate.doExecute does not translate Cassandra Exceptions. [DATACASS-304] #475

Closed
spring-projects-issues opened this issue Jun 21, 2016 · 0 comments

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Jun 21, 2016

Mark Paluch opened DATACASS-304 and commented

CqlTemplate.doExecute catches Spring's DataAccessException and so it does not translate Cassandra's RuntimeException's.

protected <T> T doExecute(SessionCallback<T> callback) {
     Assert.notNull(callback);
     try {
          return callback.doInSession(getSession());
    } catch (DataAccessException e) {
          throw translateExceptionIfPossible(e);
     }
}

Affects: 1.4.1 (Hopper SR1)

Referenced from: commits 570d71a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants