Class SQLExceptionTypeDelegate

    • Constructor Detail

      • SQLExceptionTypeDelegate

        public SQLExceptionTypeDelegate​(ConversionContext conversionContext)
    • Method Detail

      • convert

        public JDBCException convert​(SQLException sqlException,
                                     String message,
                                     String sql)
        Description copied from interface: SQLExceptionConversionDelegate
        Convert the given SQLException into the Hibernate JDBCException hierarchy.
        Parameters:
        sqlException - The SQLException to be converted.
        message - An (optional) error message.
        sql - The SQL statement, if one, being performed when the exception occurred.
        Returns:
        The resulting JDBCException, can be null