> 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:339886
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to