---------- Forwarded message ----------
From:
<commits@source.squeak.org>
Date: 2009/10/21
Subject: [squeak-dev] The Trunk: Exceptions-jcg.14.mcz
To:
squeak-dev@lists.squeakfoundation.orgJoshua Gargus uploaded a new version of Exceptions to project The Trunk:
http://source.squeak.org/trunk/Exceptions-jcg.14.mcz
==================== Summary ====================
Name: Exceptions-jcg.14
Author: jcg
Time: 21 October 2009, 12:59:37 pm
UUID: 6fba13f2-81a8-4949-8b9e-d5c10aa58da6
Ancestors: Exceptions-nice.13
Add NotYetImplemented exception class.
=============== Diff against Exceptions-nice.13 ===============
Item was added:
+ ----- Method: NotYetImplemented>>receiverClass:selector: (in category 'initialize') -----
+ receiverClass: cls selector: sel
+ �� �� �� receiverClass := cls.
+ �� �� �� selector := sel.!
Item was added:
+ ----- Method: NotYetImplemented>>selector (in category 'accessing') -----
+ selector
+ �� �� �� ^selector!
Item was added:
+ Error subclass: #NotYetImplemented
+ �� �� �� instanceVariableNames: 'receiverClass selector context'
+ �� �� �� classVariableNames: ''
+ �� �� �� poolDictionaries: ''
+ �� �� �� category: 'Exceptions-Kernel'!
+
+ !NotYetImplemented commentStamp: 'jcg 10/21/2009 00:58' prior: 0!
+ Sent by #notYetImplemented. ��Better than the age-old behavior of opening a notifier window, because this can be caught and handled
+
+ Perhaps there should be a Morphic backstop to open a notifier if no-one else handles the exception, but this doesn't seem too important.
+ !
Item was added:
+ ----- Method: NotYetImplemented>>receiverClass (in category 'accessing') -----
+ receiverClass
+ �� �� �� ^receiverClass!
Item was added:
+ ----- Method: NotYetImplemented class>>signal (in category 'signaling') -----
+ signal
+ �� �� �� "Call only from #notYetImplemented. ��Find the context that sent #nYI... this is the method that needs to be implemented."
+ �� �� �� | ctxt ex |
+ �� �� �� ctxt := thisContext sender sender.
+ �� �� �� ex := self new.
+ �� �� �� ex receiverClass: ctxt receiver class selector: ctxt selector.
+ �� �� �� ex messageText: ctxt printString.
+ �� �� �� ex signal.
+ �� �� �� �� �� �� �� !