Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: error handling in ASP with JScript


Message #1 by =?iso-8859-2?Q?Ivo_Fo=F8t?= <fort@c...> on Sat, 21 Jul 2001 17:27:41 +0200
Hi,



does anybody know how to correctly trap an error on server side in JScript

when working with scripting object (e.g. when method CopyFile of

FileSystemObject fails) ?



Thanks



Ivo









Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Mon, 23 Jul 2001 10:40:27 +0100
put the line "on error resume next" at the top of the script, then at

strategic points check for an error by examining the Err object



e.g.



on error resume next

...

...

...



if Err then

...

end if



-----Original Message-----

From: Ivo Fort [mailto:fort@c...]

Sent: 21 July 2001 16:28

To: ASP Web HowTo

Subject: [asp_web_howto] error handling in ASP with JScript





Hi,



does anybody know how to correctly trap an error on server side in 

JScript

when working with scripting object (e.g. when method CopyFile of

FileSystemObject fails) ?



Thanks



Ivo






  Return to Index