Hey folks,
Building my own exception class that inherits from ApplicationException, but
includes a few extra properties I create, such as IPAddress and such. I
want to define a couple different "New" subroutines to be able to capture
all the elements of the error that happened, and the extra data. Problem
is, it won't let me do:
Public Sub New(ByVal ex as Exception)
Me = ex
End Sub
Or
Public Sub New(ByVal ex as Exception, ByVal IPAddress as String)
Me = ex
m_IPAddress = IPAddress
End Sub
How can I easily set all the properties of the exception passed into my
"TransferException" without setting every single property by hand?
Thanks.
-Jason