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 (if known).
|
SQLException |
getSQLException()
Return the underlying SQLException.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UncategorizedSQLException(String task, @Nullable String sql, SQLException ex)
task - name of current tasksql - the offending SQL statementex - the root causepublic SQLException getSQLException()