BadSqlGrammarException
instead.@Deprecated public class BadSqlGrammarException extends BadSqlGrammarException
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)
Deprecated.
Creates a new
BadSqlGrammarException . |
Modifier and Type | Method and Description |
---|---|
R2dbcException |
getR2dbcException()
Deprecated.
Return the wrapped
R2dbcException . |
String |
getSql()
Deprecated.
Return the SQL that caused the problem.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BadSqlGrammarException(String task, String sql, R2dbcException ex)
BadSqlGrammarException
.task
- name of current task.sql
- the offending SQL statement.ex
- the root cause.public R2dbcException getR2dbcException()
R2dbcException
.getR2dbcException
in class BadSqlGrammarException
public String getSql()
getSql
in class BadSqlGrammarException
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.