From: Yochen Gutmann Date: 2006-08-08T06:37:47+09:00 Subject: Re: How to react on nil or wrong object-type as parameter Michael Greenly wrote: > > Is it by design that you intend to call handle_client with objects that > don't have portfolios? Then you need to either check for that in > handle_clients or expect the exception and catch it where it's called. > > If you didn't intend to call handl_client with a non-portfolio baring > client than the best thing that can happen is raising an expcetion > > I'm not really sure I get the conflict you were trying to get to? Sorry Michael, that I didnt make myself clearer. Yes, it is not intendet that such a non-portfolioed client can be called upon handle_client_well. Thus the question is how to aovid this wrong usage. Seemingly it cant (or at least only through a vast of checkings)). Greetings, Yochen -- Posted via http://www.ruby-forum.com/.