> A fellow co-worker is working on adding some CFTRY/CFCATCH
> goodies to a site
> we're working on. It's a semi-FuseBox site - not 100% Fusebox but close
> enough for gub'mint work.
>
> So what we're trying:
>
> <CFTRY>
> <CFSWITCH etc etc>
> (all the stuff)
> </CFSWITCH>
> <CFCATCH> blah blah
> </CFCATCH>
> </CFTRY>
>
> and it doesn't seem to be catching any errors.
>
> Are there issues wrapping the switch(s) inside the try? Do we need to, in
> each of the includes that are fired up within the cases within
> the switches, do try/catch?

One thing to remember with <CFTRY> is that it's a wrapper, therefore
anything inside will work as normal

The other thing to remember is that it'll do the <CFCATCH> code whether
there was an error or not... it's only there to "catch" real errors occuring

Try doing some <CFOUTPUT>s and see what happens and where the code goes

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to