public class InvalidResultSetAccessException
extends org.springframework.dao.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 Form| 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, getRootCausepublic 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 cause