>>>>> "Alex" == Alex Chi <[EMAIL PROTECTED]> writes:

Alex> As a beginner in smalltalk I have a problem on how to create new
Alex> exception class.  For example I want to create FileNotFoundError, I have
Alex> create a new class FileNotFoundError uner class Error. But then I get
Alex> confuse where to write the description or defaultAction of my new
Alex> exception?

Looks like both #description and #defaultAction are instance-side
methods of the classes under Exception.

So you'd define it as an instance-side method in your FileNotFound error.

You do realize that FileDoesNotExistException already exists?  Can
you just use that?

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

Reply via email to