getWarnings()
Syntax:
SQLWarning getWarnings() throws SQLException
Description:
Retrieves the first warning reported by calls on this Connection
object. If there is more than one warning, subsequent warnings will be chained to the first one and can be retrieved by calling the method SQLWarning.getNextWarning
on the warning that was retrieved previously.
This method may not be called on a closed connection; doing so will cause an SQLException
to be thrown.
Note: Subsequent warnings will be chained to this SQLWarning
.
Returns:
Type: SQLWarning
the first SQLWarning
object or null if there are none
Throws:
SQLException - if a database access error occurs
Reference:
For more information, reference JDBC documentation for: Connection.getWarnings()