io.r2dbc.spi.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.
| Access | Constructor and Description |
|---|---|
| public | BadSqlGrammarException(String
name of current task task, String the offending SQL statement sql, R2dbcException the root cause ex)Constructor for BadSqlGrammarException. |
| Modifier and Type | Method and Description |
|---|---|
| public R2dbcException | |
| public String |
| sql | back to summary |
|---|---|
| private final String sql | |
| BadSqlGrammarException | back to summary |
|---|---|
| public BadSqlGrammarException(String task, String sql, R2dbcException ex) Constructor for BadSqlGrammarException.
| |
| getR2dbcException | back to summary |
|---|---|
| public R2dbcException getR2dbcException() Return the wrapped | |
| getSql | back to summary |
|---|---|
| public String getSql() Return the SQL that caused the problem. | |