类 CacheSQLExceptionConversionDelegate

    • 构造器详细资料

      • CacheSQLExceptionConversionDelegate

        public CacheSQLExceptionConversionDelegate​(ConversionContext conversionContext)
    • 方法详细资料

      • convert

        public JDBCException convert​(SQLException sqlException,
                                     String message,
                                     String sql)
        Convert the given SQLException into Hibernate's JDBCException hierarchy.
        参数:
        sqlException - The SQLException to be converted.
        message - An optional error message.
        sql - Optionally, the sql being performed when the exception occurred.
        返回:
        The resulting JDBCException; returns null if it could not be converted.