Class MongoExceptionTranslator

  • java.lang.Object
  • All Implemented Interfaces:

    public class MongoExceptionTranslator
    extends Object
    implements PersistenceExceptionTranslator
    Simple PersistenceExceptionTranslator for Mongo. 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.
    Oliver Gierke, Michal Vich, Christoph Strobl