How to return to a "Parent" Action List in error/exception state?

Hi,

I'm not sure how to explain this scenario, so I'm using the pseudo-code below to help.

I have a Parent Action List that calls an Child Action List.  The Child Action List has a Try-Catch-End block.  When an exception is caught, I send an email and then exit the Child Action List.  Because of the way the Child's exception is handled, the Parent really doesn't know about it.

My question is: what can I do to make the Parent Action List aware of the exception?  I'd like to return to the parent in an exception state, but I can't figure out how to do that.  If I use the Raise Exception action, the entire execution stops.  I also tried using Finally instead of Catch (to avoid resetting the error state), but that didn't work either.

Am I overlooking something here??

Thanks!

 

Parent Action List
{
    do stuff
    call Child Action List
    do stuff
}


Child Action List
{
    do stuff
    Try
        try something
    Catch
        oops it caused an exception
        send an email
        Exit Action List
    End
    do stuff
}

Hi Mike,

The "Raise Exception" action works for me in this scenario. You'll need to use "Raise Exception", not "Stop Run" (stop run stops the build right there and then.)

Looking at your example, you'll also need to put a Try... Catch around the "Run Child Action List" action in order to catch the exception at the parent level, though, or it will stop execution (the parent's Run Action List action will fail with an error.)

Hth.

Regards,

Angus