Click to See Complete Forum and Search --> : Exception using Application.Exception
SonaliS
June 3rd, 2003, 12:09 AM
I want to cretae my own exception using Application.Exception Class. Can anybody help me ? Because i am not getting any example using the above class....
Can anybody help me... and give small example code/snippet?so that i can understand how to use this class ...
DdH
June 3rd, 2003, 02:35 AM
You can try something like this
Public Class MyException
Inherits System.ApplicationException
Public Sub New()
MyBase.New("This is a custom Exception")
End Sub
Public Sub New(ByVal innerException As System.Exception)
MyBase.New("This is a custom Exception with an inner exception", innerException)
End Sub
End Class
Now you can throw this 'MyException'
Danny
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.