Development ASP.Net Tutorial

<%@ Page Language="vb" %>


   
      Sub Page_Load()
         Try
            ThrowMeAnException
         Catch HttpEx As HttpException
            myMessage.Text = "ERROR:
"
            myMessage.Text &= "Message: " & HttpEx.Message & "
"
            myMessage.Text &= "Stack Trace: " & HttpEx.StackTrace & "
"
         End Try
      End Sub
      Sub ThrowMeAnException()
         Throw New HttpException("Threw an error from ThrowMeAnException")
      End Sub