Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Andreas Ames on August 25, 2010, 03:30:40 am

Title: How to depict exceptions in structural diagrams?
Post by: Andreas Ames on August 25, 2010, 03:30:40 am
Hi all,

is there a recommended way in EA to depict exceptions and their relations to operations within structural diagrams (like class diagrams)?


TIA,

aa
Title: Re: How to depict exceptions in structural diagram
Post by: Geert Bellekens on August 25, 2010, 03:47:30 pm
I don't think there is.
You can create the exceptions as regular classes, and draw a dependency from the class owning the operation to the exception.
If you want to be more specific you can link the dependency to the operation that throws this exception, but that might seriously overload your diagrams.

Geert
Title: Re: How to depict exceptions in structural diagram
Post by: KP on August 25, 2010, 04:02:26 pm
You can give the operation a tagged value named "throws" as described on this page of the help: http://www.sparxsystems.com/enterprise_architect_user_guide/software_development/java_conventions.html