public class UncategorizedSQLException extends UncategorizedDataAccessException
Constructor and Description |
---|
UncategorizedSQLException(String task,
String sql,
SQLException ex)
Constructor for UncategorizedSQLException.
|
Modifier and Type | Method and Description |
---|---|
String |
getSql()
Return the SQL that led to the problem.
|
SQLException |
getSQLException()
Return the underlying SQLException.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UncategorizedSQLException(String task, String sql, SQLException ex)
task
- name of current tasksql
- the offending SQL statementex
- the root causepublic SQLException getSQLException()
public String getSql()