how to capture errors

Results 1 to 2 of 2

Thread: how to capture errors

  1. #1
    yls Guest

    Default how to capture errors

    hi, sometimes when the myfile.asp has some errors, the system will generate some statements like<BR><BR>asp error 800X0123<BR><BR>server.createobject failed<BR><BR>and etc..<BR><BR><BR>i wanted to capture the above and it can be any forms of error. I will display it with some html formatting. thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: how to capture errors

    &#060;%<BR>Err.Clear<BR>On Error Resume Next<BR>Server.CreateObject("whatever")<BR>If Err.Number &#060;&#062; 0 Then<BR>&nbsp; &nbsp; Response.Write "Creating the &#039whatever&#039 object caused error: " & Err.Description<BR>End If<BR>On Error GoTo 0<BR>%&#062;<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts