Nick,

Request and validation errors can only use cferror to redirect to HTML files 
that can include cferror references. Any other cell in those pages will cause 
your error page to generate an error.

Steve

Sent from my iPhone

On Dec 7, 2010, at 11:24 AM, nick way <n...@southeastpublishing.com> wrote:

> 
> hi guys
> 
> For security (and appearance) reasons I don't ever want my users to be shown 
> the default CF error message.
> 
> Therefore in application.cfm I have the following:
> 
> <cferror type="validation" exception="any" 
> template="/errorDocs/myErrorHandler.cfm" />
> <cferror type="request" exception="any" 
> template="/errorDocs/myErrorHandler.cfm" />
> <cferror type="exception" exception="any" 
> template="/errorDocs/myErrorHandler.cfm" />
> 
> 
> My understanding is that *any* error message will result in the error being 
> handled by "myerrorhandler.cfm" - however.
> 
> If I execute this code in a .cfm page
> 
> <cfoutput>#</cfoutput> 
> 
> The user is shown the default CF error message (complete with info about line 
> numbers etc).
> 
> ie - CF has ignored my instruction in application.cfm on this occasion and 
> allowed the user to see the standard CF error message???
> 
> Any thoughts as to how this can be as I'm stumped!
> 
> TIA chaps.
> 
> Nick 
> 
> 

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

Reply via email to