Public Class Tester
Public Shared Sub Main
Try
Throw New Exception("Exception in ThrowExceptionWithCatch")
Catch exceptionParameter As Exception
Console.WriteLine("Message: " & exceptionParameter.Message)
Finally
Console.WriteLine("Finally executed in ThrowExceptionWithCatch")
End Try
Console.WriteLine("End of ThrowExceptionWithCatch")
End Sub
End Class
Message: Exception in ThrowExceptionWithCatch
Finally executed in ThrowExceptionWithCatch
End of ThrowExceptionWithCatch