public class InvalidResultAccessException extends InvalidDataAccessResourceUsageException
Result has been accessed in an invalid fashion. Such exceptions always
have a R2dbcException root cause.
This typically happens when an invalid FetchSpec column index or name
has been specified.
BadSqlGrammarException,
Serialized Form| Constructor and Description |
|---|
InvalidResultAccessException(R2dbcException ex)
Creates a new
InvalidResultAccessException. |
InvalidResultAccessException(String task,
String sql,
R2dbcException ex)
Creates a new
InvalidResultAccessException. |
| 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 InvalidResultAccessException(String task, @Nullable String sql, R2dbcException ex)
InvalidResultAccessException.task - name of current task.sql - the offending SQL statement.ex - the root cause.public InvalidResultAccessException(R2dbcException ex)
InvalidResultAccessException.ex - the root cause.public R2dbcException getR2dbcException()
R2dbcException.Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.