Exception resignaling question

Anthony Hannan ajh18 at cornell.edu
Tue Jul 29 15:13:28 UTC 2003


Roel Wuyts <wuyts at iam.unibe.ch> wrote:
> Hello,
> I have a question regarding exception handling that I'd like some help 
> with. Consider the following piece of code:
> 
> 	| caught |
> 	caught _ OrderedCollection new.
> 	[self error: 'Simplest piece of code throwing an error']
> 		on: Error
> 		do: [:exc | caught add: exc].
> 	caught
> 		do: [:exception | exception resignalAs: exception class new]
> 
> Why doesn't it raise an error when I evaluate it in a workspace?

It works for me.  Have you tried it in the latest release (3.6b-5373)?

Cheers,
Anthony



More information about the Squeak-dev mailing list