Class diagram and key word throws [message #1828565] |
Fri, 12 June 2020 12:14 |
|
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 11:29 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.01977 seconds