public class CassandraExceptionTranslator extends Object implements 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 |
|---|---|
DataAccessException |
translateExceptionIfPossible(RuntimeException exception) |
public DataAccessException translateExceptionIfPossible(RuntimeException exception)
translateExceptionIfPossible in interface PersistenceExceptionTranslatorCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.