"try API (of the ZipNet classes) own exception. Sorry for the mistake.
To clarify my idea I put here an example
foreach (var o in list)
catch (Exception or ArgumentException or Exception of System NS)
// do smt
If AddEntry raises an Exception I have to catch it as "System Exception" that doesn't tell me nothing about the object "o" I tried to put with AddEntry.
So I have to do something like this:
foreach( var o in list)
check what is the "o" object that has problem
MessageBox.Show("The object is"+ o)
Instead, I would like something close to this:
catch (ZipNetException.DuplicatedItem ex)
MessageBox.Show("The object probably is "+ e.Message)
As you can see, in this code I catch YOUR exception and not a generic system exception.
With your (ZipNet) exception I could have the entry that raised the exception.
Yes I think is a design question.
I hope my idea is more clear now