Can I chain SQLWarnings?

Joe Sam Shirah

Yes. SQLWarning is a subclass of SQLException. After the first warning is retrieved via getWarnings(), subsequent warnings are obtained in a way identical to SQLException chaining. You can see a minimal form of this at How to raise a custom SQLWarning?. For more information and a complete code example, see the SQL Warnings section in my JDBC 2.0 Fundamentals Short Course at the Java Developer Connection.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.