Package org.springframework.jdbc
Class UncategorizedSQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.UncategorizedDataAccessException
org.springframework.jdbc.UncategorizedSQLException
- All Implemented Interfaces:
Serializable
public class UncategorizedSQLException
extends org.springframework.dao.UncategorizedDataAccessException
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, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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).
-