Jun 21, 2004 #1 BorlandGeek Programmer Joined Jun 14, 2004 Messages 27 Location CA Is there a way to use a try/catch method to catch SQL errors i have tried and failed to get this to work
Is there a way to use a try/catch method to catch SQL errors i have tried and failed to get this to work
Jun 21, 2004 #2 onrdbandit Programmer Joined Mar 12, 2003 Messages 145 Location US Howdy, What did/does your catch statement look like? Have you tried catch(...) to catch all exceptions? Just a thought or two... No! Try not. Do, or do not. There is no try. - Yoda Upvote 0 Downvote
Howdy, What did/does your catch statement look like? Have you tried catch(...) to catch all exceptions? Just a thought or two... No! Try not. Do, or do not. There is no try. - Yoda
Jun 21, 2004 Thread starter #3 BorlandGeek Programmer Joined Jun 14, 2004 Messages 27 Location CA Sorry i should have told you that i figured it out im using a try { { catch(const Exception &EDatabaseError) { MessageBox bla bla you know the rest } Upvote 0 Downvote
Sorry i should have told you that i figured it out im using a try { { catch(const Exception &EDatabaseError) { MessageBox bla bla you know the rest }
Jun 25, 2004 #4 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB if you are sure a reference to a const Exception will be thrown then you may do like this. Ion Filipski Upvote 0 Downvote
if you are sure a reference to a const Exception will be thrown then you may do like this. Ion Filipski