On 25 October 2013 13:34, Norbert Hartl <[email protected]> wrote:

> I’m thinking about what would be the proper/least annoying way of having
> multiple exception sections. If I have a code block that can emit two
> different exceptions is the only way doing it
>
> [ [ ... ]
>   on: Exception1
>   do: [ … ] ]
>     on: Exception2
>     do: [ … ]
>
> on:do: just calls a primitive that marks the context being an exception
> handler. What is called in the image when the stack is scanned to find an
> exception handler?
>
> Look at MethodContext exception handling category.
Not sure if this answer can satisfies you, because the code there is hard
to read and hard to debug.


> thanks,
>
> Norbert
>



-- 
Best regards,
Igor Stasenko.

Reply via email to