[FIX][KCP][3.6a] IfUnhandledError-nk

ned at bike-nomad.com ned at bike-nomad.com
Fri Jun 27 17:43:23 UTC 2003

from preamble:

"Change Set:		IfUnhandledError-nk
Date:			27 June 2003
Author:			Ned Konz

This changeset:
- edits all callers of BlockContext>>ifError: to use something else,
usually #ifUnhandledError:
- adds BlockContext>>ifUnhandledError: (see below)
- marks BlockContext>>ifError: as deprecated
- edits all callers of Semaphore>>critical:ifError: to use something
- marks Semaphore>>critical:ifError: as deprecated
- edits most callers of
  on: Error do: [ ... ]
to use something else, mostly #ifUnhandledError:
- restores the behavior of removing step messages from the WorldState
step list when the step messages have an error (the 'start stepping
again' debug menu choice will restart them)

I wrote #ifUnhandledError:, which allows enclosing scopes to handle
exceptions. This behaves exactly the same as #ifError:, except that:
- if there is an outer exception handler, that handler gets to handle
the exception instead, and
- there is now a one-argument form as well as the 0 and 2 argument forms
that gets passed the exception itself.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: IfUnhandledError-nk.cs.gz
Type: application/octet-stream
Size: 16603 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030627/9a8a98c7/IfUnhandledError-nk.cs.obj

More information about the Squeak-dev mailing list