<blockquote>
* You can nest cftry blocks. For example, the following structure is valid:
<cftry>
code that may cause an exception
<cfcatch ...>
<cftry>
First level of exeption handling code
<cfcatch ...>
Second level of exception handling code
</cfcatch
</cftry>
</cfcatch>
</cftry>
If an exception occurs in the first level of exception-handling code, the inner cfcatch block can catch and handle it. (An exception in a cfcatch block cannot be handled by cfcatch blocks at the same level as that block.)
</blockquote>
This shows the concept of putting nested try-catch blocks inside the the catch block of other try-catch blocks. (That is not an awkward sentence!) Anyway, you can use something like this to try a piece of code as many times as you like, then still have an out of none of the trays work.
What I would probably do is put the code I'm trying in some kind of included source (cfinclude, custom tag, UDF or CFC) then I could call the code in multiple locations of the nested try-catch blocks without having to re-code it every time.
HTH
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

