You can use different 'types' of catches.

See here for more info, http://www.cfquickdocs.com/cf8/#cfcatch

On Wed, Nov 18, 2009 at 8:08 AM, Keith McGee <kpmc...@frontiernet.net> wrote:
>
> I want to catch missing template errors only,
>
> for example if a user has a link to an old template I don't want my 
> exception.cfm page to load and notify me I want to load a default template.
>
> But if the template page loads and has an error I want the exception.cfm to 
> load and notify me.
>
> This is what I tried but this will also catch errors in the page even if it 
> loads
>
> <cftry>
>  <cfinclude template="#var1#/#var2#.cfm">
>   <cfcatch>
>     <cfinclude template="default.cfm">
>   </cfcatch>
> </cftry>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328485
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to