all groups > dotnet windows forms > march 2004 >
You're in the

dotnet windows forms

group:

Exception handling in catch clause


Exception handling in catch clause polynomial5d NO[at]SPAM yahoo.com
3/20/2004 11:41:05 PM
dotnet windows forms:

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

RE: Exception handling in catch clause PocketNerd
3/21/2004 12:36:05 AM
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

RE: Exception handling in catch clause polynomial5d
3/21/2004 2:21:05 AM
Thank you again, Pocket. I'll try this one out as wel

AddThis Social Bookmark Button