In this situation the answer is "Yes".
Sloppy logic, Rob. What on earth made you think that I was somehow referring
to a class that I had created and named "Exception?" What I said was "All
Exceptions inherit Exception." From the context, it was clear that I was
referring to the ONLY "Exception" that all Exceptions inherit from. In fact,
even the original poster mentioned that his class inherits System.Exception.
It is not possible to create any type of Exception class that does NOT
inherit System.Exception, which is the base class for ALL Exceptions.
The VB.NET wizard generates the
following code when you type Try<CR>:
Try
Catch ex As Exception
End Try
That is dangerous as you might not spot that what you really need is Catch
ex As System.Exception if you *happen* to have created your own class
called Exception. Which will take precedence.
Well, darn. I suppose I should switch to VB.Net and let Wizards and
Designers type all my code for me. I apologize for my ignorance. I always
write my own try/catch blocks in C#.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.