The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.



Posted by richard on January 10, 2001 at 10:20 PM


Just to re-inforce what was said earlier from the design point of view using exceptions. If I create an exception class it has only the two constructors inherited from the super class - it does not need to have any functionality itself, therefore no data members or methods of its own. It is effectively a way of flagging errors from one part of a Class to another, or to another class.

For the cyclic dependency issue, I agree, it is a design issue which (or so I've always imagined) it is better to resolve by altering the design (as the Irishman said when asked for directions: "if I was going there, I wouldn't start from here").

Apologies to all Irish people! Hope this helps...



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us