public class InvalidResultSetAccessException extends InvalidDataAccessResourceUsageException
java.sql.SQLException
root cause.
This typically happens when an invalid ResultSet column index or name has been specified. Also thrown by disconnected SqlRowSets.
BadSqlGrammarException
,
SqlRowSet
,
Serialized FormModifier and Type | Field and Description |
---|---|
private java.lang.String |
sql |
Constructor and Description |
---|
InvalidResultSetAccessException(java.sql.SQLException ex)
Constructor for InvalidResultSetAccessException.
|
InvalidResultSetAccessException(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex)
Constructor for InvalidResultSetAccessException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSql()
Return the SQL that caused the problem.
|
java.sql.SQLException |
getSQLException()
Return the wrapped SQLException.
|
contains, getMessage, getMostSpecificCause, getRootCause
@Nullable private final java.lang.String sql
public InvalidResultSetAccessException(java.lang.String task, java.lang.String sql, java.sql.SQLException ex)
task
- name of current tasksql
- the offending SQL statementex
- the root causepublic InvalidResultSetAccessException(java.sql.SQLException ex)
ex
- the root causepublic java.sql.SQLException getSQLException()
@Nullable public java.lang.String getSql()