ASP Error Handling


Here's how to add error handling in ASP:

'set the error to 0 in case a previous error check set it to something else

err.Number = 0
on error resume next

'check for conditions here
if err.Number <> 0 then
'do something, an error has occurred
  'set the error to 0 in case another error check will be performed
   err.Number = 0
end if