Exception Handling
nicolas
squeak-dev at lists.squeakfoundation.org
Mon Mar 20 20:48:09 UTC 2006
> If handler blocks are the same, there is the possibility to handle a
> collection of errors in Visualworks,
> [someObject foo]
> on: FooError , UnrelatedToFooError
> do: [:error | "do something common to FooError and
> UnrelatedToFooError"].
>
> but i did not see anything like this in Squeak... unless i missed
> something. Has anyone got elegant a solution for the second case ?
>
> Nicolas
OK, Chris was faster, and also answered my question:
(FooError , UnrelatedToFooError) is implemented of course in
Exception class>>#,
Nicolas
More information about the Squeak-dev
mailing list
|