Package org.springframework.jdbc
Class UncategorizedSQLException
- All Implemented Interfaces:
Serializable
Exception thrown when we can't classify an SQLException into
one of our generic data access exceptions.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionUncategorizedSQLException
(String task, String sql, SQLException ex) Constructor for UncategorizedSQLException. -
Method Summary
Modifier and TypeMethodDescriptiongetSql()
Return the SQL that led to the problem (if known).Return the underlying SQLException.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UncategorizedSQLException
Constructor for UncategorizedSQLException.- Parameters:
task
- name of current tasksql
- the offending SQL statementex
- the root cause
-
-
Method Details
-
getSQLException
Return the underlying SQLException. -
getSql
Return the SQL that led to the problem (if known).
-