@FunctionalInterface public interface ExceptionTranslator
org.springframework.dao.support.PersistenceExceptionTranslator.
org.neo4j.ogm.drivers.bolt.response.BoltResponse
keeps an open result set which might throw a org.neo4j.driver.exceptions.ServiceUnavailableException at
a very late stage.
org.neo4j.ogm.session.Neo4jSession. It uses this translator to
translate driver specific exceptions into exception declared in the Neo4j-OGM api.| Modifier and Type | Method and Description |
|---|---|
RuntimeException |
translateExceptionIfPossible(Throwable e)
Translates exceptions thrown by any of the drivers into exceptions defined in the Neo4j-OGM api.
|
RuntimeException translateExceptionIfPossible(Throwable e)
e - Exception to translatee itself if a translation is not possible.Copyright © 2023 Ant Group. All rights reserved.