Interface ExceptionConverter


  • public interface ExceptionConverter
    • Method Detail

      • 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

        RuntimeException convert​(HibernateException e,
                                 LockOptions lockOptions)
        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

        RuntimeException convert​(HibernateException e)
        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