Package org.hibernate.internal.util
Class JdbcExceptionHelper
java.lang.Object
org.hibernate.internal.util.JdbcExceptionHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Method Details
-
extractErrorCode
For the given SQLException, locates the vendor-specific error code.- Parameters:
sqlException- The exception from which to extract the SQLState- Returns:
- The error code.
-
extractSqlState
For the given SQLException, locates the X/Open-compliant SQLState.- Parameters:
sqlException- The exception from which to extract the SQLState- Returns:
- The SQLState code, or null.
-
extractSqlStateClassCode
For the given SQLException, locates the X/Open-compliant SQLState's class code.- Parameters:
sqlException- The exception from which to extract the SQLState class code- Returns:
- The SQLState class code, or null.
-
determineSqlStateClassCode
-