Class CouchbaseExceptionTranslator
java.lang.Object
org.springframework.data.couchbase.core.CouchbaseExceptionTranslator
- All Implemented Interfaces:
PersistenceExceptionTranslator
Simple
PersistenceExceptionTranslator
for Couchbase.
Convert the given runtime exception to an appropriate exception from the org.springframework.dao
hierarchy.
Return null if no translation is appropriate: any other exception may have resulted from user code, and
should not be translated.
- Author:
- Michael Nitschinger, Simon Baslé, Michael Reiche, Graham Pople, Tigran Babloyan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal DataAccessException
Translate Couchbase specific exceptions to spring exceptions if possible.
-
Constructor Details
-
CouchbaseExceptionTranslator
public CouchbaseExceptionTranslator()
-
-
Method Details
-
translateExceptionIfPossible
Translate Couchbase specific exceptions to spring exceptions if possible.- Specified by:
translateExceptionIfPossible
in interfacePersistenceExceptionTranslator
- Parameters:
ex
- the exception to translate.- Returns:
- the translated exception or null.
-