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