G
Guest
Hi
Is there a way to find out what COMException is being thrown as a result of
an operation, for example
DirectoryEntry newUser = entry.Children.Add(<newuser_CNname>, "user")
I suppose this one would throw a COMException if a duplicate CNname is
found. But if other operations, coming after this one, would also throw
COMExceptions, then how can I differentiate the COMException thrown by each
operation as the COMException error message doesn't seems to provide
specific information. Do I need to throw ApplicationException in this case?
In order to do that, do I need to define my own class of
ApplicationException?
TIA
--
Is there a way to find out what COMException is being thrown as a result of
an operation, for example
DirectoryEntry newUser = entry.Children.Add(<newuser_CNname>, "user")
I suppose this one would throw a COMException if a duplicate CNname is
found. But if other operations, coming after this one, would also throw
COMExceptions, then how can I differentiate the COMException thrown by each
operation as the COMException error message doesn't seems to provide
specific information. Do I need to throw ApplicationException in this case?
In order to do that, do I need to define my own class of
ApplicationException?
TIA
--