public class CassandraExceptionTranslator extends Object implements org.springframework.dao.support.PersistenceExceptionTranslator
PersistenceExceptionTranslator for Cassandra.
Convert the given runtime exception to an appropriate exception from the org.springframework.dao hierarchy.
Preserves exception if it's already a DataAccessException and ignores non DriverExceptions returning
null. Falls back to CassandraUncategorizedException in case there's no mapping to a more detailed
exception.
| Constructor and Description |
|---|
CassandraExceptionTranslator() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.dao.DataAccessException |
translateExceptionIfPossible(RuntimeException exception) |
public org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException exception)
translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslatorCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.