类 SQLExceptionSubclassTranslator

    • 方法详细资料

      • doTranslate

        protected DataAccessException doTranslate​(String task,
                                                  String sql,
                                                  SQLException ex)
        Template method for actually translating the given exception.

        The passed-in arguments will have been pre-checked. Furthermore, this method is allowed to return null to indicate that no exception match has been found and that fallback translation should kick in.

        指定者:
        doTranslate 在类中 AbstractFallbackSQLExceptionTranslator
        参数:
        task - readable text describing the task being attempted
        sql - the SQL query or update that caused the problem (if known)
        ex - the offending SQLException
        返回:
        the DataAccessException, wrapping the SQLException; or null if no exception match found