ADO error trapping

Results 1 to 2 of 2

Thread: ADO error trapping

  1. #1
    Join Date
    Dec 1969

    Default ADO error trapping

    Does anyone have a good way to trap ADO errors on the serverside using JScript? I have found examples with VBScript, but no JScript.

  2. #2
    Join Date
    Dec 1969

    Default RE: ADO error trapping

    In order to do this in Jscript you will need to be running version 5 of the Jscript engine. I haven&#039t actually done it, but the construct you need is the "try ... catch" construct:<BR><BR>try {<BR>&nbsp;&nbsp;// statements that may throw errors<BR>} catch(error) {<BR>&nbsp;&nbsp;// error handling here<BR>}<BR><BR>If you&#039ve done any Java it should be familiar (although it&#039s not quite the same as Java).<BR><BR>Dunc

Posting Permissions

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