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