Question about Exception

Avi Bryant avi at beta4.com
Wed Jul 24 17:21:21 UTC 2002


On Wed, 24 Jul 2002, Bergel Alexandre wrote:

> Hello,
>
> I am wondering how I could use exception within Squeak. The following code does not what I except...
>
> [Exception signal] on: [Exception] do: [:exception| Transcript show: 'Exception !';cr]
                         ^^^^^^^^^^^
Just take that out of the block and you'll be fine:

> [Exception signal] on: Exception do: [:exception| Transcript show: 'Exception !';cr]





More information about the Squeak-dev mailing list