Skip to main content



      Home
Home » Modeling » Papyrus » Class diagram and key word throws
Class diagram and key word throws [message #1828565] Fri, 12 June 2020 08:14 Go to next message
Eclipse UserFriend
Hello everybody,

I have a simple method :

public BasicCar clone() throws CloneNotSupportedException {
  return (Ford) super.clone();
}


and I'm looking for how to add the key word throws with an exception
in my class diagram.

Thank you for your answer.
Re: Class diagram and key word throws [message #1828598 is a reply to message #1828565] Sun, 14 June 2020 07:29 Go to previous message
Eclipse UserFriend
Hi Gregory,

UML does not know about exceptions.
What you can do is
1. apply an existing profile (i.e. an Eclipse Papyrus Sofware Designer profile) that adds the notion of exceptions
2. roll on your own profile adding the notion of exceptions
3. treat an exception as out parameter (UML allows an arbitary number of out parameters)
4. keep out the aspect of exceptions

/Carsten
Previous Topic:tycho-surefire-plugin failed to open Papyrus diagram
Next Topic:Different size in diagram
Goto Forum:
  


Current Time: Wed Jul 02 14:35:23 EDT 2025

Powered by FUDForum. Page generated in 0.04711 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top