[squeak-dev] Exception patterns (The Inbox: Kernel-ct.1292.mcz)

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Jan 3 01:58:02 UTC 2020

Outlook jumbled my message completely. Here the examples again:

[self model merge]
	on: MCMergeResolutionRequest
		& [:request | request merger conflicts notEmpty]
	do: [:request | request resume: true].

[client unusedBytecode]
	on: MessageNotUnderstood
		& [:ex | ex receiver == client]
		& [:ex | ex message selector == #unusedBytecode]
	do: [self error: 'unusedBytecode'].

references := [self resolvePackageSpecReferences: packageSpec gofer: gofer]
	on: [self class retryPackageResolution] & (Error , GoferRepositoryError)
	do: [:ex | retryCount >= 2 ifFalse: [
		ex return: #() ]
	on: [self class retryPackageResolution] & GoferRepositoryError.
		Transcript showln: 'gofer repository error: '; show: ex description printString; show: '...ignoring'.
		(repositoryError := ex) resume: #()].

sz := 1024*1024*1024*1024.
	should: [Array new: sz]
	raise: OutOfMemory, (Error & [:ex | ex messageText includesSubstring: 'basicNew: with invalid argument']).

More information about the Squeak-dev mailing list