error handling

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

error handling

Erlis Vidal
Hi all,

After finishing "Squeak By Example" I have an unanswered question and is about the error handling. I could see in the book how to raise an error with the message error: but what I couldn't find anywhere is how to react when an error occurs.

 Could someone point me in the right direction about this. Any link or book will do it, you don't have to write a hole chapter while answering to me I will read whatever you suggest.

Thanks and regards,
Erlis

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: error handling

Randal L. Schwartz
>>>>> "Erlis" == Erlis Vidal <[hidden email]> writes:

Erlis> After finishing "Squeak By Example" I have an unanswered question
Erlis> and is about the error handling. I could see in the book how to
Erlis> raise an error with the message error: but what I couldn't find
Erlis> anywhere is how to react when an error occurs.

The Exception framework is quite nice.  Google for "squeak exception
tutorial" and I'm sure you'll find some more details.  I believe there
is also some in-image documentation for the Exception class and its
subclasses.

Here's one http://www.chrisburkert.de/index.php?node_id=73

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: error handling

Erlis Vidal
Hi Randal,

Thanks for the promptly reply. I'll take a look to your suggestions immediately.

I think it would be nice to include exceptions on the SBE book.

Regards,
Erlis


On Tue, Apr 12, 2011 at 2:02 PM, Randal L. Schwartz <[hidden email]> wrote:
>>>>> "Erlis" == Erlis Vidal <[hidden email]> writes:

Erlis> After finishing "Squeak By Example" I have an unanswered question
Erlis> and is about the error handling. I could see in the book how to
Erlis> raise an error with the message error: but what I couldn't find
Erlis> anywhere is how to react when an error occurs.

The Exception framework is quite nice.  Google for "squeak exception
tutorial" and I'm sure you'll find some more details.  I believe there
is also some in-image documentation for the Exception class and its
subclasses.

Here's one http://www.chrisburkert.de/index.php?node_id=73

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - <a href="tel:%2B1%20503%20777%200095" value="+15037770095" target="_blank">+1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: error handling

Ken G. Brown
In reply to this post by Randal L. Schwartz
At 11:02 AM -0700 4/12/11, Randal L. Schwartz apparently wrote:

> >>>>> "Erlis" == Erlis Vidal <[hidden email]> writes:
>
>Erlis> After finishing "Squeak By Example" I have an unanswered question
>Erlis> and is about the error handling. I could see in the book how to
>Erlis> raise an error with the message error: but what I couldn't find
>Erlis> anywhere is how to react when an error occurs.
>
>The Exception framework is quite nice.  Google for "squeak exception
>tutorial" and I'm sure you'll find some more details.  I believe there
>is also some in-image documentation for the Exception class and its
>subclasses.
>
>Here's one http://www.chrisburkert.de/index.php?node_id=73

And a draft chapter on Exceptions from Pharo by Example 2 at:
<http://pharobyexample.org/>

Ken

>
>--
>Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
><[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
>Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
>See http://methodsandmessages.posterous.com/ for Smalltalk discussion
>_______________________________________________
>Beginners mailing list
>[hidden email]
>http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: error handling

Erlis Vidal
In reply to this post by Randal L. Schwartz
Hi Ken,

Thanks for the hint!

I just finished Squeak By Example but I see that Pharo By Example is another good choice, good material there.

I'll take a look at it too.


On Tue, Apr 12, 2011 at 3:38 PM, Ken G. Brown <[hidden email]> wrote:
At 11:02 AM -0700 4/12/11, Randal L. Schwartz apparently wrote:
> >>>>> "Erlis" == Erlis Vidal <[hidden email]> writes:
>
>Erlis> After finishing "Squeak By Example" I have an unanswered question
>Erlis> and is about the error handling. I could see in the book how to
>Erlis> raise an error with the message error: but what I couldn't find
>Erlis> anywhere is how to react when an error occurs.
>
>The Exception framework is quite nice.  Google for "squeak exception
>tutorial" and I'm sure you'll find some more details.  I believe there
>is also some in-image documentation for the Exception class and its
>subclasses.
>
>Here's one http://www.chrisburkert.de/index.php?node_id=73

And a draft chapter on Exceptions from Pharo by Example 2 at:
<http://pharobyexample.org/>

Ken

>
>--
>Randal L. Schwartz - Stonehenge Consulting Services, Inc. - <a href="tel:%2B1%20503%20777%200095" value="+15037770095">+1 503 777 0095
><[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
>Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
>See http://methodsandmessages.posterous.com/ for Smalltalk discussion
>_______________________________________________
>Beginners mailing list
>[hidden email]
>http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: error handling

Randal L. Schwartz
In reply to this post by Ken G. Brown
>>>>> "Ken" == Ken G Brown <[hidden email]> writes:

Ken> And a draft chapter on Exceptions from Pharo by Example 2 at:
Ken> <http://pharobyexample.org/>

Yes, quite nice.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners