Jeffry,

Your last statement prior to the closing try needs to be a catch. If you are
running multiple catches and you also want to catch all, the all statement
needs to come last.

- Chris

<!----------------------------------------------------------->
Christopher Cortes                   |Coming Q3 2001:
Consultant                           |
Stonebridge Technologies, Inc.       | �Optimizing ColdFusion�
     Putting Technology To Work      |           By
Visit us at www.sbti.com             |   Christopher Cortes
Ofc: 713.985.6244 cel: 281.235.6100  |     www.osborne.com
<-----------------------------------------------------------!>


-----Original Message-----
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 6:46 PM
To: CF-Talk
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

Reply via email to