public class SQLExceptionHelper extends Object
SQLException codes extraction helper.| Constructor and Description |
|---|
SQLExceptionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getErrorCode(SQLException sqlException)
Get the vendor-specific error code.
|
static Optional<String> |
getSqlState(SQLException sqlException)
Get the SQL state.
|
public static int getErrorCode(SQLException sqlException)
sqlException - The exception from which to extract the codepublic static Optional<String> getSqlState(SQLException sqlException)
sqlException - The exception from which to extract the stateCopyright © 2019 The Holon Platform. All rights reserved.