@Deprecated 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 FormConstructor and Description |
---|
InvalidResultAccessException(R2dbcException ex)
Deprecated.
Creates a new
InvalidResultAccessException . |
InvalidResultAccessException(String task,
String sql,
R2dbcException ex)
Deprecated.
Creates a new
InvalidResultAccessException . |
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 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–2022 Pivotal Software, Inc.. All rights reserved.