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 © 2016 JBoss by Red Hat. All rights reserved.