<cfcatch type="exception type">

By default the exception type is "APPLICATION" which is only developer
raised exception, ie. cfthrow, cfrethrow.

Syntax for CFCATCH:
http://www.allaire.com/cfdocs/CFML_Language_Reference/2_ColdFusion_Tags/lr2_
101.htm

Exception types:
http://www.allaire.com/cfdocs/Developing_Web_Applications_with_ColdFusion/08
_Debugging_and_Error_Handling/dwa08_06.htm

So if you're trying to catch code errors, etc. it won't work: To do that,
define a different exception type. If it's not catching cfthrow errors, try
defining an exception type in the cfthrow tag as well as in the cfcatch. CF
4.0x handles exceptions differently from 4.5x so depending on which version
you're using how you handle will vary.


-----Original Message-----
From: Scott Weikert [mailto:[EMAIL PROTECTED]]
Sent: January 18, 2001 13:00
To: CF-Talk
Subject: cftry/cfcatch and cfswitch issues?


Hey gang,

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?

Thanks in advance,
--Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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