ExcHandling extensions and a question
Craig Latta
Craig.Latta at NetJam.ORG
Thu Mar 25 00:56:33 UTC 1999
Hi Stephen--
> Below are a few (hopefully useful) extensions to Craig Latta's excellent
> exception handling code.
Thanks! Your extensions include BlockContext>>on:handle:. Which interface uses that message? I've not encountered it before (in VisualWorks or ANSI).
> I have one question: I can't figure out how to make an exception
> event proceedable. Even if you create a proceedable situation, it
> looks as if exceptions that are cases of it are non-proceedable.
> Am I missing something?
As Vassili pointed out, you need to use a different handling request message to handle a proceedable exception (>>handleProceedably: instead of >>handle:). This was intentional. I wanted each situation to specify whether an exception may proceed, and leave the actual proceedability of a particular exception as a context-specific choice. An exception for a proceedable situation does not have to be proceedable. I've encountered many situations where the proceedability of an exception depends on highly dynamic information.
In the interest of conservatism/paranoia, I decided to assume non-proceedability for a particular exception unless explicitly specified with >>handleProceedably:.
I hope that makes sense!
thanks again,
-C
--
Craig Latta
composer and computer scientist
craig.latta at netjam.org
www.netjam.org
latta at interval.com
Smalltalkers do: [:it | All with: Class, (And love: it)]
More information about the Squeak-dev
mailing list
|