[squeak-dev] The Trunk: Exceptions-ar.26.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 10 06:06:53 UTC 2010


Andreas Raab uploaded a new version of Exceptions to project The Trunk:
http://source.squeak.org/trunk/Exceptions-ar.26.mcz

==================== Summary ====================

Name: Exceptions-ar.26
Author: ar
Time: 9 March 2010, 10:06:39.885 pm
UUID: f0f7bb59-f516-f446-9992-0228ae379794
Ancestors: Exceptions-nice.24

Add KeyNotFound error which is signaled when a key in a collection cannot be found.

=============== Diff against Exceptions-nice.24 ===============

Item was added:
+ ----- Method: KeyNotFound>>messageText (in category 'accessing') -----
+ messageText
+ 	"Return a textual description of the exception."
+ 	^messageText ifNil:['Key not found: ', key]!

Item was added:
+ ----- Method: KeyNotFound>>key (in category 'accessing') -----
+ key
+ 	"The key which wasn't found"
+ 	^key!

Item was added:
+ ----- Method: KeyNotFound classSide>>key: (in category 'instance creation') -----
+ key: anObject
+ 	^self new key: anObject!

Item was added:
+ ----- Method: KeyNotFound>>key: (in category 'accessing') -----
+ key: anObject
+ 	"The key which wasn't found"
+ 	key := anObject!

Item was added:
+ Error subclass: #KeyNotFound
+ 	instanceVariableNames: 'key'
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'Exceptions-Kernel'!

Item was added:
+ ----- Method: KeyNotFound>>description (in category 'accessing') -----
+ description
+ 	"Return a textual description of the exception."
+ 	^(self messageText) ifNil:['Key not found: ', key]!




More information about the Squeak-dev mailing list