类 JdbcExceptionHelper
- java.lang.Object
-
- org.hibernate.internal.util.JdbcExceptionHelper
-
public final class JdbcExceptionHelper extends Object
- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringdetermineSqlStateClassCode(String sqlState)static intextractErrorCode(SQLException sqlException)For the given SQLException, locates the vendor-specific error code.static StringextractSqlState(SQLException sqlException)For the given SQLException, locates the X/Open-compliant SQLState.static StringextractSqlStateClassCode(SQLException sqlException)For the given SQLException, locates the X/Open-compliant SQLState's class code.
-
-
-
方法详细资料
-
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.
-
-