Get used to this if you get into any sort of remote invocation programming with 
classes iextending UnicastRemoteObject.  There are some situations where you can't 
supply defaults for missing data and only an exception will do...

Best Regards, Nat

Thursday, October 03, 2002 11:14 AM
To: "JDJList" <[EMAIL PROTECTED]>
cc: 
From: "Repine, Burt" <[EMAIL PROTECTED]>
Subject: [jdjlist] Exception thrown from the constructor of a class

A developer on our team just introduced a new set of classes the project
that throw an exception from the constructor.
The classes follow the Value Object pattern so they're just data containers.
The exception is thrown if a null value is passed in.

This seems like a really bad idea to me with no inherent benefit but the
developer is holding fast to his implementation.
Are there any philosophies out there on this subject?

Thanks!


____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________


____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to