Interface ExceptionConverter

All Known Implementing Classes:
ExceptionConverterImpl

public interface ExceptionConverter
  • Method Details

    • convertCommitException

      RuntimeException convertCommitException(RuntimeException e)
      Converts the exception thrown during the transaction commit phase
      Parameters:
      e - The exception being handled
      Returns:
      The converted exception
    • convert

      Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.
      Parameters:
      e - The Hibernate exception.
      lockOptions - The lock options in effect at the time of exception (can be null)
      Returns:
      The JPA-specified exception
    • convert

      Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.
      Parameters:
      e - The Hibernate exception.
      Returns:
      The JPA-specified exception
    • convert

    • convert

      RuntimeException convert(RuntimeException e, LockOptions lockOptions)
    • convert

      JDBCException convert(SQLException e, String message)