RE: operation visibility? Also, how should I represent exceptions?

"Tom Morris" <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.user
Message-ID <01fc01c749b4$2e4bd0d0$6501a8c0@micronxp>
> If I select private visibility for an 
> operation in a class diagram, I see no indication of the 
> visibility in 
> the class diagram (I expect '-' to appear before the 
> operation). Is this a feature?

Check your settings to make sure that "Show Visibility" is checked under the
Notation tab.  It sounds like it might have gotten turned off somehow
(hopefully we don't have it off by default).

> Also, how should I represent exceptions that an operation can 
> raise? My 
> oreilly UML 2.0 in a nutshell book suggests adding a comment diagram 
> listing the exceptions anchored to the operation. I think that would 
> make a very cluttered model. Is there another way?

From a semantic point of view an Exception is a subtype of a Signal, so you
can model it using a raisedSignal on a Method or Operation for the sending
side and the a Reception for the receiving side, however, we don't really do
anything useful with this from a graphical display point of view, so if you
are purely creating visual diagrams, the Comment suggestion may be the best
approach.

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.