Nope, sure isn't.  CF does it internally, but there isn't a way to do
it yourself.  Definitely be nice to have though.

You can synthesize it a little bit though.  Put the CFCATCH structure
in the request scope, and then throw your new exception.  When you
catch that new exception, check the reqeust scope for the cause, and
if it's there, inject it into the new CFCATCH structure, and then
you're back to what you want.  Wrap both ends up in custom tags, and
you should be set.

I've never done it for this reason, but I've used that same basic
design for throwing an exception object, rather than just an exception
name.  Works pretty well.

cheers,
barneyb

On 9/15/05, Peter Hardy <[EMAIL PROTECTED]> wrote:
> Hi guys, 
>   
> In .net, when using try / catch statements you can wrap any exceptions that
> occur in your own custom exceptions and rethorw it. You can then access both
> the custom exception, i.e myException, and also the original exception i.e
> myException.innerException. Is it possible to do the same thing in CF? 
>   
> Cheers, Pete (aka lad4bear)
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to