ResultSet.getWarnings

ResultSet.getWarnings

Interface Overview | Interface Members | This Package | All Packages

Syntax
public abstract SQLWarning getWarnings() throws SQLException
Returns
the first SQLWarning or null
Description

The first warning reported by calls on this ResultSet is returned. Subsequent ResultSet warnings will be chained to this SQLWarning.

The warning chain is automatically cleared each time a new row is read.

Note: This warning chain only covers warnings caused by ResultSet methods. Any warning caused by statement methods (such as reading OUT parameters) will be chained on the Statement object.

Exceptions
SQLException if a database-access error occurs.