SQLWarning getWarnings() throws SQLException
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 object or null if there are none
SQLException - if a database access error occurs
For more information, reference JDBC documentation for: Connection.getWarnings()