org.hibernate.exception.spi.SQLExceptionConverter implementation which performs conversion based
on the underlying SQLState. Interpretation of a SQL error based on SQLState is not nearly as accurate as
using the ErrorCode (which is, however, vendor-specific).
SQLState codes are defined by both ANSI SQL specs and X/Open. Some "classes" are shared, others are specific to one or another, yet others are custom vendor classes. Unfortunately I have not been able to find a "blessed" list of X/Open codes. These codes are cobbled together between ANSI SQL spec and error code tables from few vendor's documentation.
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Set | |
| private static Set | |
| private static Set | |
| private static Set | |
| public @Nullable JDBCException | convert(SQLException
The sqlException, String SQLException to be convertedAn optional error message message, String The SQL statement that resulted in the exception sql)Implements org. SQLException to a subtype of
JDBCException, if possible.
|
| CONNECTION_CATEGORIES | back to summary |
|---|---|
| private static final Set<String> CONNECTION_CATEGORIES | |
| DATA_CATEGORIES | back to summary |
|---|---|
| private static final Set<String> DATA_CATEGORIES | |
| INTEGRITY_VIOLATION_CATEGORIES | back to summary |
|---|---|
| private static final Set<String> INTEGRITY_VIOLATION_CATEGORIES | |
| SQL_GRAMMAR_CATEGORIES | back to summary |
|---|---|
| private static final Set<String> SQL_GRAMMAR_CATEGORIES | |
| SQLStateConversionDelegate | back to summary |
|---|---|
| public SQLStateConversionDelegate(ConversionContext conversionContext) | |
| buildConnectionCategories | back to summary |
|---|---|
| private static Set | |
| buildContraintCategories | back to summary |
|---|---|
| private static Set | |
| buildDataCategories | back to summary |
|---|---|
| private static Set | |
| buildGrammarCategories | back to summary |
|---|---|
| private static Set | |
| convert | back to summary |
|---|---|
| public @Nullable JDBCException convert(SQLException sqlException, String message, String sql) Implements org. Doc from org. Convert the given
| |