Error handling

Results 1 to 2 of 2

Thread: Error handling

  1. #1
    Join Date
    Dec 1969

    Default Error handling

    Hi, everybody ~<BR>Is &#039On Error GoTo Err_Handler&#039 a valid statment for ASP? I&#039m getting the following error:<BR><BR>Microsoft VBScript compilation error &#039 800a03ea&#039 <BR>Syntax error <BR><BR>/Include/Policy.asp, line 39 <BR><BR>On Error Goto ErrorHandler<BR><BR>Thanx in advance.<BR><BR>

  2. #2
    Jason Cochran Guest

    Default RE: Error handling

    Call it as a Sub procedure:<BR><BR>&#060;%<BR>On Error Resume Next<BR>Response.Write "20 / 0 = " & 20/0<BR>Call ErrorHandler<BR><BR>Sub ErrorHandler()<BR> If Err.Number = 11 Then<BR> Response.Write "Division by ZERO man!"<BR> End If<BR> If Err.Number = 6 Then<BR> Response.Write "Overflow error, Dude!"<BR> End If<BR>End Sub<BR>%&#062;

Posting Permissions

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