java.lang.Object | ||
↳ | org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator | |
↳ | org.springframework.jdbc.support.SQLStateSQLExceptionTranslator |
SQLExceptionTranslator
implementation that analyzes the SQL state in
the SQLException based on the first two digits (the SQL state "class").
Detects standard SQL state values and well-known vendor-specific SQL states.
Not able to diagnose all problems, but is portable between databases and
does not require special initialization (no database vendor detection, etc.).
For more precise translation, consider SQLErrorCodeSQLExceptionTranslator
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Template method for actually translating the given exception.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jdbc.support.SQLExceptionTranslator
|
Template method for actually translating the given exception.
The passed-in arguments will have been pre-checked. Furthermore, this method
is allowed to return null
to indicate that no exception match has
been found and that fallback translation should kick in.
task | readable text describing the task being attempted |
---|---|
sql | SQL query or update that caused the problem (may be null ) |
ex | the offending SQLException |
SQLException
;
or null
if no exception match found