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 FormConstructor 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, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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()