Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Class diagram and key word throws
Class diagram and key word throws [message #1828565] Fri, 12 June 2020 12:14 Go to next message
Gregory Roche is currently offline Gregory RocheFriend
Messages: 8
Registered: February 2020
Junior Member
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 Go to previous message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 274
Registered: May 2015
Location: Germany
Senior Member
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

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

Current Time: Thu Mar 04 01:57:42 GMT 2021

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

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

Back to the top