Class ElasticsearchExceptionTranslator
java.lang.Object
org.springframework.data.elasticsearch.core.ElasticsearchExceptionTranslator
- All Implemented Interfaces:
PersistenceExceptionTranslator
public class ElasticsearchExceptionTranslator
extends Object
implements PersistenceExceptionTranslator
Simple
PersistenceExceptionTranslator for Elasticsearch. 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.- Since:
- 3.2
- Author:
- Christoph Strobl, Peter-Josef Meisch, Roman Puchkovskiy, Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ElasticsearchExceptionTranslator
public ElasticsearchExceptionTranslator()
-
-
Method Details
-
translateExceptionIfPossible
- Specified by:
translateExceptionIfPossiblein interfacePersistenceExceptionTranslator
-