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,
io.r2dbc.spi.R2dbcException ex)
Constructor for BadSqlGrammarException.
|
Modifier and Type | Method and Description |
---|---|
io.r2dbc.spi.R2dbcException |
getR2dbcException()
Return the wrapped
R2dbcException . |
String |
getSql()
Return the SQL that caused the problem.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public io.r2dbc.spi.R2dbcException getR2dbcException()
R2dbcException
.public String getSql()