getWarnings()
Syntax:
SQLWarning getWarnings() throws SQLException
Description:
Retrieves the first warning reported by calls on this Statement
object. Subsequent Statement
object warnings will be chained to this SQLWarning
object.
The warning chain is automatically cleared each time a statement is (re)executed. This method may not be called on a closed Statement
object; doing so will cause an SQLException
to be thrown.
Returns:
the first SQLWarning
object or null
if there are no warnings
Throws:
SQLException - if a database access error occurs or the statement has been closed
Reference:
For more information, reference JDBC documentation for: Statement.getWarnings()