[Glass] Problem with UncontinuableError

Richard Sargent richard.sargent at gemtalksystems.com
Mon Mar 10 16:16:05 PDT 2014

Mariano Martinez Peck wrote
> [ self somethingThatTriggersAZeroDivide ]
> on: Error
> do: [ :err |  | errString |
> "...snip ..."
> ^ port ].


It may well be the /^port/ in the exception handler is causing this. Try
using /err return: port/ as the last line of the handler block. That will
cause the block protected by the #on:do: to yield the value passed to

If you have more code in the method after this, you will need to dance a
little more to know you need to return from the method.

This is just a guess, as /^port/ should be an acceptable way to finish the
exception handler, too. But one can imagine that it isn't as well supported
as a "normal" end of block, or a specifically handled exception.

View this message in context: http://forum.world.st/Glass-Problem-with-UncontinuableError-tp4748450p4748484.html
Sent from the GLASS mailing list archive at Nabble.com.

More information about the Glass mailing list