Thanks Russ - that's got it :) Cheers
Nick ----- Original Message ----- From: Russ Michaels To: cf-talk Sent: Tuesday, December 07, 2010 5:27 PM Subject: RE: custom error message - sometimes cf ignores me and displays the standard error message FYI if you us ethe default error page as set in the cfadmin, you can use cfml in here. I have seen this cause problems though for the reasons Dave described, as customers cause errors in the error and then blame it on the host/server. Russ -----Original Message----- From: Dave Watts [mailto:[email protected]] Sent: 07 December 2010 16:52 To: cf-talk Subject: Re: custom error message - sometimes cf ignores me and displays the standard error message > When you say "Request and validation errors can only use cferror to redirect to HTML files that can include cferror references." Are you saying i > could only point to an "apperrorhandler.html" file? not "apperrorhandler.cfm? (that'd be a shame as my apperrorhandler.cfm? emails me to tell me > about the error so i can sort it. That is correct. Your error page can't be a .cfm page. If it could, it could in turn generate an error. This is basically a leftover from the old days of CF - presumably, early versions would have sent the error in your error handler to your error handler, and so on. You can use CFML code to deal with compile-time errors and run-time exceptions via the site-wide error handler (which can be a .cfm page). You can also use CFML code to deal with run-time exceptions using TYPE="EXCEPTION" in your CFERROR tag and pointing to a .cfm page. Finally, you can use CFML code to deal with run-time exceptions using the onError event handler in Application.cfc or using exception handling within your code. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339892 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

