Class KeyValuePersistenceExceptionTranslator

java.lang.Object
org.springframework.data.keyvalue.core.KeyValuePersistenceExceptionTranslator
All Implemented Interfaces:
org.springframework.dao.support.PersistenceExceptionTranslator

public class KeyValuePersistenceExceptionTranslator extends Object implements org.springframework.dao.support.PersistenceExceptionTranslator
Simple PersistenceExceptionTranslator implementation for key/value stores that converts the given runtime exception to an appropriate exception from the org.springframework.dao hierarchy.
Author:
Christoph Strobl, Mark Paluch
  • Constructor Details

    • KeyValuePersistenceExceptionTranslator

      public KeyValuePersistenceExceptionTranslator()
  • Method Details

    • translateExceptionIfPossible

      @Nullable public org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException exception)
      Specified by:
      translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslator