Michael,

There is an 'order of presedence' with error control.
CFTRY/CFCATCH - priority over all
CFERROR is 2nd priority 
Site wide Custom Template is the 3rd priority (this is set in the
Administrator pages)
System error Handling (also in the Administrator pages, involving the debug)

Basically, when an error occurs, CF looks for the resolution through that
list, and in that order.
Eg.  an error is thrown but it was not in a CFTRY/CFCATCH, then it will send
the error to the appropriate CFERROR setting (unless there isn't one then it
will go to the Site-Wide, otherwise it will display the error 'on-page'
using the debug settings from your admin settings.)

Hope this helps,
William

-- 
William E. Seiter
 
Web Developer
http://William.Seiter.com
-----Original Message-----
From: Michael E. Carluen [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 30, 2007 7:04 PM
To: CF-Talk
Subject: RE: Site wide error handlers

What does cferror do if cftry-cfthrow-cfcatch is already in place?



> -----Original Message-----
> From: ColdFusion [mailto:[EMAIL PROTECTED]
> Sent: Sunday, September 30, 2007 6:30 PM
> To: CF-Talk
> Subject: RE: Site wide error handlers
> 
> What I have is in my Application.cfm file:
> 
> <cferror type="EXCEPTION" template="error/error.cfm">
> <cferror type="REQUEST" template="error/error.cfm">
> 
> Then within the error.cfm file, I display an error message to the user and
> then have a CFMAIL tag to send me all the information (cfdump of request,
> session, request, etc)
> 
> -----Original Message-----
> From: Richard White [mailto:[EMAIL PROTECTED]
> Sent: Sunday, September 30, 2007 10:15 PM
> To: CF-Talk
> Subject: Site wide error handlers
> 
> Hi,
> 
> i have just set up a hosting package with a cf host. it is on a shared
> server and they are telling me that they do not allow me to have access to
> the cf administrator and therefore i cannot set a site wide error handler
> or
> a missing template handler. i was told that i couldn't set a site wide
> error
> handler at all.
> 
> i was even told that i should test it at home before i upload it - lol, im
> sure it would be great if we could all develop 100% error free software
> and
> anticipate everything that may happen.
> 
> is there a way that i can set the site wide and missing template error
> handlers in the code
> 
> thanks
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289837
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to