Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [corona-dev] Exceptions in Corona.

In general I agree. If a null return is valid, I think it is OK return null. But defenitely we shouldn't return null when there was some exception within a method.

Marcin

Jaworowski, Piotr napisał(a):

Hi,

I’m not sure if it’s a good idea to change all the return null; statements to exceptions, I would rather use Null Object pattern instead (where it’s possible of course);

Piotr,

------------------------------------------------------------------------

*From:* corona-dev-bounces@xxxxxxxxxxx [mailto:corona-dev-bounces@xxxxxxxxxxx] *On Behalf Of *Kaczmarek, Pawel
*Sent:* Tuesday, October 03, 2006 12:24 PM
*To:* Corona development
*Subject:* RE: [corona-dev] Exceptions in Corona.

Great idea. We also need to change returns of null values to exceptional returns.

Pawel


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Back to the top