Class CassandraExceptionTranslator

java.lang.Object
org.springframework.data.cassandra.core.cql.CassandraExceptionTranslator
All Implemented Interfaces:
PersistenceExceptionTranslator, CqlExceptionTranslator

public class CassandraExceptionTranslator extends Object implements CqlExceptionTranslator
Simple 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.

Author:
Alex Shvid, Matthew T. Adams, Mark Paluch, Mikhail Polivakha