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 sql,
SQLException ex)
Constructor for BadSqlGrammarException.
|
| Modifier and Type | Method and Description |
|---|---|
SQLException |
cause() |
String |
sql() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BadSqlGrammarException(String sql, SQLException ex)
sql - the offending SQL statementex - the root causepublic SQLException cause()
public String sql()
Copyright © 2017. All rights reserved.