Interface ExceptionTranslationStrategy

All Known Implementing Classes:
FallbackExceptionTranslationStrategy, PassThroughExceptionTranslationStrategy

public interface ExceptionTranslationStrategy
Potentially translates an Exception into appropriate DataAccessException.
Since:
1.4
Author:
Christoph Strobl, Thomas Darimont
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.dao.DataAccessException
    Potentially translate the given Exception into DataAccessException.
  • Method Details

    • translate

      @Nullable org.springframework.dao.DataAccessException translate(Exception e)
      Potentially translate the given Exception into DataAccessException.
      Parameters:
      e - must not be null.
      Returns:
      can be null if given Exception cannot be translated.