Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Talk
Cold Fusion - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Talk: 
Subject: CFTRY / CFCATCH questions
Jeffry Houser (217p/+0r)     Posted: Monday 23 Apr 2001
This post: 45 views, +0 rating

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:jeff@farcryfly.com 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


Similar Subject Line Posts (+/- two weeks of this post)
RE: CFTRY / CFCATCH questions  24 Apr 2001   (27 v/ +0 r)
RE: CFTRY / CFCATCH questions  24 Apr 2001   (26 v/ +0 r)
RE: CFTRY / CFCATCH questions  24 Apr 2001   (26 v/ +0 r)
RE: CFTRY / CFCATCH questions  23 Apr 2001   (25 v/ +0 r)
RE: CFTRY / CFCATCH questions  23 Apr 2001   (27 v/ +0 r)
Re: CFTRY / CFCATCH questions  23 Apr 2001   (32 v/ +0 r)
CFTRY / CFCATCH questions  23 Apr 2001 (this post)   (45 v/ +0 r)
 

Send a reply to the CF-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000