Never set a try catch globally. You will get stuck in an infinite loop as the server catch error after error i.e. errors on the error page. Only use it where you access the db for inserts and updates or for file access. Most basic errors can be caught using conventional methods such as IsDefined. TRY...CATHCH is great but you can have too much of a good thing and my suggestion is to trap known errors conventionally and use TRY...CATCH as described above.
Ellis C Wood BSc Ellwood Web Solutions T: 01623 459973 E: [EMAIL PROTECTED] W: http://www.ellwoodwebsolutions.co.uk -----Original Message----- From: Paul Swingewood [mailto:[EMAIL PROTECTED] Sent: 05 August 2004 22:28 To: [EMAIL PROTECTED] Subject: [ cf-dev ] Exceptions I have begun 'snagging' my shoe site and the functionality seems to work ok. Now I need to make sure it works when it breaks - enter <cfthrow> <cfcatch>. Are there any guidelines tips tricks in using these tags? I have played with them before but never really used them in anger. If the site breaks does this present a security hazard to the hosting company? Do hosting companies run a 'global' error trap for when things go wrong? Should every page have a catch/throw or can I set this up site wide? Is it good practice to ensure all varaibles are set default with CFPARAM or better to check NOT isdefined()? So many questions - where to start ...?? Regards - Paul -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]
