Package org.springframework.jdbc
Class UncategorizedSQLException
- All Implemented Interfaces:
Serializable
public class UncategorizedSQLException extends UncategorizedDataAccessException
Exception thrown when we can't classify a SQLException into one of our generic data access exceptions.- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description UncategorizedSQLException(String task, String sql, SQLException ex)
Constructor for UncategorizedSQLException.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSql()
Return the SQL that led to the problem.SQLException
getSQLException()
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 Detail
UncategorizedSQLException
public UncategorizedSQLException(String task, String sql, SQLException ex)
Constructor for UncategorizedSQLException.- Parameters:
task
- name of current tasksql
- the offending SQL statementex
- the root cause
Method Detail
getSQLException
public SQLException getSQLException()
Return the underlying SQLException.