Sponsored Link •
|
Advertisement
|
Advertisement
|
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.
Message:
Hi 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").
Richard Replies: |
Sponsored Links
|