Class SQLExceptionTypeDelegate

    • Constructor Detail

      • SQLExceptionTypeDelegate

        public SQLExceptionTypeDelegate​(ConversionContext conversionContext)
    • Method Detail

      • convert

        public @Nullable JDBCException convert​(SQLException sqlException,
                                               String message,
                                               String sql)
        Description copied from interface: SQLExceptionConversionDelegate
        Convert the given SQLException to a subtype of JDBCException, if possible.
        sqlException - The SQLException to be converted
        message - An optional error message
        sql - The SQL statement that resulted in the exception
        The resulting JDBCException, or null if this delegate does not know how to interpret the given SQLException.