Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need some info on SQLWarnings.

Status
Not open for further replies.

cwinans

Programmer
Mar 26, 2001
102
US
I need some info on SQLWarnings.

When should I use them as opposed to SQLExceptions, or shouldn't I bother?

I'm trying to get as much info on what my class is doing behind the scenes. It currently works fine on our development server, but when pushed to staging nothing happens... no errors, exceptions, nothing. I just want to find out all I can.

Are SQLWarnings were tampering with? How exactly would you use them with or without the joint use of SQLException?

Thanks in advance. I hope this helped! ;-)
- Casey Winans
 
I would:

try{
sql code that is problematic
}
catch(Exception e){
System.out.println("Exception generated: " + e);
}

This will catch _any_ exception.

Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top