No, but you CAN put the CATCH CLAUSE in an include. This allows you to use
the same CATCH processing on many pages in a modular way.
For example
<cftry>
... code code and more code ...
<cfcatch type="database">
<cfinclude template="catchDBClause.cfm">
</cfcatch>
<cfcatch type="all">
<cfinclude template="catchAllClause.cfm">
</cfcatch>
<cftry>
> -----Original Message-----
> From: Chris Norloff [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, October 30, 2000 7:38 AM
> To: CF-Talk
> Cc: [EMAIL PROTECTED]
> Subject: RE: CFTRY in Application.cfm?
>
> Darn. So I can't even put them in with a couple CFINCLUDEs?
>
> thanks,
> Chris Norloff
>
> ---------- Original Message ----------------------------------
> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 27 Oct 2000 13:24:20 -0400
>
> >Sadly, the compiler requires CFTRY /CFTRY to be in the same file.
> >
> >-----Original Message-----
> >From: Chris Norloff [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, October 27, 2000 12:51 PM
> >To: CF-Talk
> >Subject: CFTRY in Application.cfm?
> >
> >
> >Is this reasonable, feasible, or ridiculous?
> >
> >Put <CFTRY> in Application.cfm
> >and
> >put <CFCATCH>, </CFCATCH> and </CFTRY> in OnRequestEnd.cfm
> >to
> >catch errors from any page in that part of the application?
> >
> >thanks,
> >Chris Norloff
> >
>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]