public class BadSqlGrammarException extends InvalidDataAccessResourceUsageException
java.sql.SQLException root cause.
 It would be possible to have subclasses for no such table, no such column etc. A custom SQLExceptionTranslator could create such more specific exceptions, without affecting code using this class.
InvalidResultSetAccessException, 
Serialized Form| Constructor and Description | 
|---|
BadSqlGrammarException(String task,
                      String sql,
                      SQLException ex)
Constructor for BadSqlGrammarException. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getSql()
Return the SQL that caused the problem. 
 | 
SQLException | 
getSQLException()
Return the wrapped SQLException. 
 | 
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BadSqlGrammarException(String task, String sql, SQLException ex)
task - name of current tasksql - the offending SQL statementex - the root causepublic SQLException getSQLException()
public String getSql()