It's sloppy. Try/catch should be around specific code blocks and thrown with descriptive messages for the error type.
Putting it all around the page, which can contain 1 or many pages / functions would not be very smart of help with debugging / defensive coding. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Mik Muller To: CF-Talk Sent: Wed Feb 21 18:43:07 2007 Subject: RE: Logging Errors in Database > >First, wrapping your entire page with CFTRY is an awful idea. Don't do that. Forgive me for being dense, but why is it an awful idea? System resources? Granularity on code? Just sloppy or lazy? Currently I have certain pages wrapped in a cftry and in the cfcatch I send myself an email as well as give the user a polite apology for any inconvenience. Michael -------- Michael Muller Admin, MontagueMA.net Website work (413) 863-0030 cell (413) 320-5336 skype: michaelBmuller http://www.MontagueMA.net Eschew Obfuscation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270357 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

