public class CouchbaseExceptionTranslator extends Object implements PersistenceExceptionTranslator
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.
| Constructor and Description |
|---|
CouchbaseExceptionTranslator() |
| Modifier and Type | Method and Description |
|---|---|
DataAccessException |
translateExceptionIfPossible(RuntimeException ex)
Translate Couchbase specific exceptions to spring exceptions if possible.
|
public final DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible in interface PersistenceExceptionTranslatorex - the exception to translate.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.