getWarnings()

Syntax:

SQLWarning getWarnings()
                       throws SQLException

Description:

Retrieves the first warning reported by calls on this ResultSet object. Subsequent ResultSet 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 ResultSet 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 this method is called on a closed result set

Reference:

For more information, reference JDBC documentation for: ResultSet.getWarnings()