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(SQLException ex)
Constructor for InvalidResultSetAccessException.
|
InvalidResultSetAccessException(String task,
String sql,
SQLException ex)
Constructor for InvalidResultSetAccessException.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSql()
Return the SQL that caused the problem.
|
SQLException |
getSQLException()
Return the wrapped SQLException.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidResultSetAccessException(String task, String sql, SQLException ex)
task - name of current tasksql - the offending SQL statementex - the root causepublic InvalidResultSetAccessException(SQLException ex)
ex - the root causepublic SQLException getSQLException()
public String getSql()