About use of specific error

stéphane ducasse ducasse at iam.unibe.ch
Fri Mar 3 12:42:45 UTC 2006


>> can you read what I wrote.... I'm not teaching anything here  
>> related to first checking if a key exist or not, or
>> how to use a dictionary......
>>
>> I'm teaching them to write tests and to write tests for a class  
>> that raises exceptions
>> you have to catch them and to cover the potential behavior of the  
>> class! This is not my wish or not to have exceptions, they are  
>> there and to cover the method behavior (because of different  
>> programming style) I have to cover them.
> Agreed already yesterday. As I said/ wanted to say: Maybe I pushed  
> the discussing about exception-handling teaching a bit too hard due  
> to intensive discussions I had with students during _my_ java  
> classes but:

I do not have a good internet connection here...

Good summary. I will digest it. You should explain to me (face to  
face your PreconditionError).
I think that the name is good and could be used in a lot of place  
where we do not really care of trapping the error.

>>>>
> We still haven't seen a compelling reason to introduce above  
> exception-classes. I thought you were proposing them but could not  
> find any argument for them.
> Reading your reply to Andreas it seems that you just wanted to  
> provoke... ;-)

Not really. As I said I was trying to educate my OO skills in face of  
exception. What is good to do or not.
Basically thinking aloud and I wanted to know what others were  
thinking. I often use squeak-dev to put some ideas on the wall and  
see what is left after some discussions.

> As I said, I think you provoked a fruitful discussion.

For me too :).

Stef



More information about the Squeak-dev mailing list