>I have a generic catch block for exceptions of type Exception
Once inside the block I would like to know if my exception is of type
System.Data.SqlClient.SqlException. Actually I would like to pass the
variable of type Exception to a generic error handler, where I need to
know
the specific Exception.
I need to find a something like 'Is Type' or something like that.
How about this?
Private Sub genericErrorHandler(ByVal e As Exception)
Select Case e.GetType().Name
Case "SqlException"
Case "ArgumentNullException"
Case "IndexOutOfBoundsException"
Case "Exception"
End Select
End Sub
--
Peace & happy computing,
Mike Labosh, MCSD
"Mr. McKittrick, after very careful consideration, I have
come to the conclusion that this new system SUCKS."
-- General Barringer, "War Games"
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...