by, 03-10-2012 at 08:00 AM (584 Views)
The SQLWarning objects are subclasses of SQLException. They are involved in dealings with database access warnings. Warning actually doesnít stop the execution of program, as oppose to exceptions. They inform users that few things which are not present in execution plan are happening.
- A privilege revoked didnít revoke.
- An error occurred, during the requested disconnections.
A warning might be on:
- A connection object
- A ResultSet object
- A statement object
A getWarnings() method is being provided by every given class. These methods are used to get 1st warning by call, at the calling object. Call the method getNextWarning() to get the next warning in case method getWarnings() return warning.