that's incorrect, actually. it will catch them in the order defined. so if
there is an "ALL" first, there will never be any other. basically, it
starts at the first CATCH, compares exception types. if it is a match, that
handler occurs, if not, it examines the next one in order, ad nauseum, until
the last catch (which should probably be an "ALL" JIC)
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-----Original Message-----
From: Bryan LaPlante [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:00 PM
To: CF-Talk
Subject: Re: CFTRY / CFCATCH questions
There are no requirements on the order of cfcatch statements that I'm aware
of.
----- Original Message -----
From: "Jeffry Houser" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 6:45 PM
Subject: CFTRY / CFCATCH questions
>
> I know that at least one CFCATCH must be put inside a CFTRY block. How
> picky is CF on the order of the tags, though? for example:
>
> <CFTRY>
> Some code
> <CFCATCH type="Database">
> </CFCATCH>
>
> <CFCATCH type="object">
> </CFCATCH>
>
> <CFCATCH type="all">
> </CFCATCH>
>
> </CFTRY>
>
>
> First off, can you use an 'all' catch with other specialized catches
> defined? Would a database exception catch at 'all' or would it catch at
> 'database'? If I changed the code around to look like this:
>
>
> <CFTRY>
> Some code
>
> <CFCATCH type="all">
> </CFCATCH>
>
> <CFCATCH type="Database">
> </CFCATCH>
>
> <CFCATCH type="object">
> </CFCATCH>
>
>
> </CFTRY>
>
>
> Then, where would a database exception catch? At 'all' or at 'database'?
>
>
> If I put the code after the CFCATCHs, would an error catch? Like this:
>
> <CFTRY>
>
> <CFCATCH type="Database">
> </CFCATCH>
>
> <CFCATCH type="object">
> </CFCATCH>
>
> <CFCATCH type="all">
> </CFCATCH>
>
> Some code
> </CFTRY>
>
>
> Thoughts, comments? Much thanks!
>
>
>
> Jeffry Houser | mailto:[EMAIL PROTECTED]
> AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781
> --
> Instant ColdFusion 5.0 | ISBN: 0-07-213238-8
> Due out June 2001
> --
> DotComIt, LLC
> database driven web data using ColdFusion, Lotus Notes/Domino
> --
> Half of the Alternative Folk Duo called Far Cry Fly
> http://www.farcryfly.com | http://www.mp3.com/FarCryFly
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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