|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SQLExceptionTranslator
Strategy interface for translating between SQLExceptions
and Spring's data access strategy-agnostic DataAccessException
hierarchy.
Implementations can be generic (for example, using
SQLState
codes for JDBC) or wholly
proprietary (for example, using Oracle error codes) for greater precision.
DataAccessException
Method Summary | |
---|---|
DataAccessException |
translate(String task,
String sql,
SQLException ex)
Translate the given SQLException into a generic DataAccessException . |
Method Detail |
---|
DataAccessException translate(String task, String sql, SQLException ex)
SQLException
into a generic DataAccessException
.
task
- readable text describing the task being attemptedsql
- SQL query or update that caused the problem. May be null
.ex
- the offending SQLException
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |