Exception handling in catch clause

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I purposely create a duplicate error and read the message from the message box, part of the message says..
The changes you requested to the table were not successful because they would create duplicate values in the index,primary key or relationship....

I wish to handle an error of this type differently than other errors in a catch clause, but I can't find the exception name. I know another is called DBConcurrancyException

At minimum, what is the name of this exception? More useful would be the location where I can find the names of all the exceptions, and the syntax for handling them in a catch clause

I've been back and forth through the documentation without success

polynomial5d
 
You can find out all of the information you need by running the code in the debugger and looking at the Exception object that you currently catch. It will show you the complete hierarchy for the Exceptio

HT

RS
 
Back
Top