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,
Serialized Form| Constructor and Description |
|---|
InvalidResultSetAccessException(SQLException ex)
Constructor for InvalidResultSetAccessException.
|
InvalidResultSetAccessException(String sql,
SQLException ex)
Constructor for InvalidResultSetAccessException.
|
| Modifier and Type | Method and Description |
|---|---|
SQLException |
cause() |
String |
sql()
Return the SQL that caused the problem.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidResultSetAccessException(String sql, SQLException ex)
sql - the offending SQL statementex - the root causepublic InvalidResultSetAccessException(SQLException ex)
ex - the root causepublic SQLException cause()
public String sql()
Copyright © 2017. All rights reserved.