类 SQLExceptionTypeDelegate

    • 构造器详细资料

      • SQLExceptionTypeDelegate

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

      • convert

        public JDBCException convert​(SQLException sqlException,
                                     String message,
                                     String sql)
        从接口复制的说明: SQLExceptionConversionDelegate
        Convert the given SQLException into the Hibernate JDBCException hierarchy.
        参数:
        sqlException - The SQLException to be converted.
        message - An (optional) error message.
        sql - The SQL statement, if one, being performed when the exception occurred.
        返回:
        The resulting JDBCException, can be null