类 JdbcExceptionHelper


  • public final class JdbcExceptionHelper
    extends Object
    作者:
    Steve Ebersole
    • 方法详细资料

      • extractErrorCode

        public static int extractErrorCode​(SQLException sqlException)
        For the given SQLException, locates the vendor-specific error code.
        参数:
        sqlException - The exception from which to extract the SQLState
        返回:
        The error code.
      • extractSqlState

        public static String extractSqlState​(SQLException sqlException)
        For the given SQLException, locates the X/Open-compliant SQLState.
        参数:
        sqlException - The exception from which to extract the SQLState
        返回:
        The SQLState code, or null.
      • extractSqlStateClassCode

        public static String extractSqlStateClassCode​(SQLException sqlException)
        For the given SQLException, locates the X/Open-compliant SQLState's class code.
        参数:
        sqlException - The exception from which to extract the SQLState class code
        返回:
        The SQLState class code, or null.
      • determineSqlStateClassCode

        public static String determineSqlStateClassCode​(String sqlState)