Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
On Error GoTo OwDear
Stupid:
On Error Resume Next
Throw New Exception("Dun gone wrong.")
On Error GoTo OwDear
Throw New Exception("Another error.")
OwDear:
MsgBox("Another error.")
End Sub
Documented: http://msdn.microsoft.com/en-us/library/5hsw66as.aspx
This is just awful!
No comments:
Post a Comment