Fwd: [squeak-dev] The Trunk: Exceptions-jcg.14.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: [squeak-dev] The Trunk: Exceptions-jcg.14.mcz

cedreek
Useful ? 
There are other related commits.

Cheers

---------- Forwarded message ----------
From: <[hidden email]>
Date: 2009/10/21
Subject: [squeak-dev] The Trunk: Exceptions-jcg.14.mcz
To: [hidden email]


Joshua 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.
+               !





--
Cédrick

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [squeak-dev] The Trunk: Exceptions-jcg.14.mcz

Stéphane Ducasse
this is a fun other :)

Stef

On Oct 21, 2009, at 11:11 AM, Cédrick Béler wrote:

> Useful ?
> There are other related commits.
>
> Cheers
>
> ---------- Forwarded message ----------
> From: <[hidden email]>
> Date: 2009/10/21
> Subject: [squeak-dev] The Trunk: Exceptions-jcg.14.mcz
> To: [hidden email]
>
>
> Joshua 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.
> +               !
>
>
>
>
>
> --
> Cédrick
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project