public final class JdbcExceptionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
determineSqlStateClassCode(String sqlState) |
static int |
extractErrorCode(SQLException sqlException)
For the given SQLException, locates the vendor-specific error code.
|
static String |
extractSqlState(SQLException sqlException)
For the given SQLException, locates the X/Open-compliant SQLState.
|
static String |
extractSqlStateClassCode(SQLException sqlException)
For the given SQLException, locates the X/Open-compliant SQLState's class code.
|
public static int extractErrorCode(SQLException sqlException)
sqlException
- The exception from which to extract the SQLStatepublic static String extractSqlState(SQLException sqlException)
sqlException
- The exception from which to extract the SQLStatepublic static String extractSqlStateClassCode(SQLException sqlException)
sqlException
- The exception from which to extract the SQLState class codeCopyright © 2001-2017 Red Hat, Inc. All Rights Reserved.