Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to model "Exception throwing" for operartion in uml 2 class diagram
How to model "Exception throwing" for operartion in uml 2 class diagram [message #471651] Fri, 16 March 2007 07:28 Go to next message
Lasith is currently offline Lasith
Messages: 29
Registered: July 2009
Junior Member
Hi All,

I am using RSM 6 and 7. I need to model a class diagram with operation
that throws an exception.

for the method java code as followings,

public String myMehtod(int a, String b)throws Exception{
---
---
}

Thanks.
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #471653 is a reply to message #471651] Fri, 16 March 2007 19:59 Go to previous messageGo to next message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Have a look at the old uml newsgroup 'eclipse.tools.uml2' around December
14 there was a thread about this.
The title of the message was "Modeling Exception Handling".

Regards,

- James.


"RSM user" <lasith100@yahoo.com> wrote in message
news:dd1351a94292c0b171a0b328caeb974d$1@www.eclipse.org...
> Hi All,
>
> I am using RSM 6 and 7. I need to model a class diagram with operation
> that throws an exception.
>
> for the method java code as followings,
>
> public String myMehtod(int a, String b)throws Exception{
> ---
> ---
> }
>
> Thanks.
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #471657 is a reply to message #471653] Mon, 19 March 2007 05:54 Go to previous messageGo to next message
Eclipse User
Originally posted by: cdNs25100.yahoo.com

Thank James,

I read those messages, but I feel it is not going to solve my problem

I am further specifying my problem below,
I want to model a class diagram with a method called "ReadMyFile" and that
method throws the FileNotFoundException exception (that is built in java
exception).

So, How can I model java FileNotFoundException exception, It is better if
you can give answer related to RSM modeling.

I am specifying some RSM related exception handling tips below,

1. There is a property for method parameters in RSM called "Is Exception".
2. Also, there is another property for a method called "raised exception"

Thanks.
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #471731 is a reply to message #471657] Mon, 19 March 2007 21:45 Go to previous messageGo to next message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
From RSM if you visualize your java class, you will get a "disruptable"
combined fragment for exceptions but this is a RSM customization and not
part of the official spec. You might want to try visualization of your
class to get a customized sequence diagram.

Apart from what is described in the old newsgroup regarding modeling
exception handling, I'm not aware of any other better (standard) way of
modelling exceptions. Why are those tips from the old newsgroup not
sufficient for you?

I think that modelling exceptions is a sore point for UML in general.

Regards,

- James.


"RSM User" <cdNs25100@yahoo.com> wrote in message
news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
> Thank James,
>
> I read those messages, but I feel it is not going to solve my problem
>
> I am further specifying my problem below,
> I want to model a class diagram with a method called "ReadMyFile" and that
> method throws the FileNotFoundException exception (that is built in java
> exception).
>
> So, How can I model java FileNotFoundException exception, It is better if
> you can give answer related to RSM modeling.
>
> I am specifying some RSM related exception handling tips below,
>
> 1. There is a property for method parameters in RSM called "Is Exception".
> 2. Also, there is another property for a method called "raised exception"
>
> Thanks.
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #471732 is a reply to message #471731] Tue, 20 March 2007 00:27 Go to previous messageGo to next message
Rafael Chaves is currently offline Rafael Chaves
Messages: 362
Registered: July 2009
Senior Member
In this specific scenario, where a user wants to structurally model an
operation and the exceptions it throws, I actually can't see what is
lacking. The raisedExceptions property seems to be good enough. Or am I
missing something?

It seems that what the OP wants is easily doable with UML2. The issue
here steems from the fact that the OP actually wants help on how to do
that with RSM, and that kind of question certainly does not belong to
this forum, and should be asked elsewhere.

Rafael

James Bruck wrote:
> From RSM if you visualize your java class, you will get a "disruptable"
> combined fragment for exceptions but this is a RSM customization and not
> part of the official spec. You might want to try visualization of your
> class to get a customized sequence diagram.
>
> Apart from what is described in the old newsgroup regarding modeling
> exception handling, I'm not aware of any other better (standard) way of
> modelling exceptions. Why are those tips from the old newsgroup not
> sufficient for you?
>
> I think that modelling exceptions is a sore point for UML in general.
>
> Regards,
>
> - James.
>
>
> "RSM User" <cdNs25100@yahoo.com> wrote in message
> news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
>> Thank James,
>>
>> I read those messages, but I feel it is not going to solve my problem
>>
>> I am further specifying my problem below,
>> I want to model a class diagram with a method called "ReadMyFile" and that
>> method throws the FileNotFoundException exception (that is built in java
>> exception).
>>
>> So, How can I model java FileNotFoundException exception, It is better if
>> you can give answer related to RSM modeling.
>>
>> I am specifying some RSM related exception handling tips below,
>>
>> 1. There is a property for method parameters in RSM called "Is Exception".
>> 2. Also, there is another property for a method called "raised exception"
>>
>> Thanks.
>>
>
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #471734 is a reply to message #471732] Tue, 20 March 2007 03:04 Go to previous messageGo to next message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Rafael,

What's an OP?
I agree that it is not fair to focus on product specific questions in this
forum.

- James.


"Rafael Chaves" <chaves@inf.ufsc.nospam.br> wrote in message
news:etn9oj$q45$1@utils.eclipse.org...
> In this specific scenario, where a user wants to structurally model an
> operation and the exceptions it throws, I actually can't see what is
> lacking. The raisedExceptions property seems to be good enough. Or am I
> missing something?
>
> It seems that what the OP wants is easily doable with UML2. The issue here
> steems from the fact that the OP actually wants help on how to do that
> with RSM, and that kind of question certainly does not belong to this
> forum, and should be asked elsewhere.
>
> Rafael
>
> James Bruck wrote:
>> From RSM if you visualize your java class, you will get a "disruptable"
>> combined fragment for exceptions but this is a RSM customization and not
>> part of the official spec. You might want to try visualization of your
>> class to get a customized sequence diagram.
>>
>> Apart from what is described in the old newsgroup regarding modeling
>> exception handling, I'm not aware of any other better (standard) way of
>> modelling exceptions. Why are those tips from the old newsgroup not
>> sufficient for you?
>>
>> I think that modelling exceptions is a sore point for UML in general.
>>
>> Regards,
>>
>> - James.
>>
>>
>> "RSM User" <cdNs25100@yahoo.com> wrote in message
>> news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
>>> Thank James,
>>>
>>> I read those messages, but I feel it is not going to solve my problem
>>>
>>> I am further specifying my problem below,
>>> I want to model a class diagram with a method called "ReadMyFile" and
>>> that
>>> method throws the FileNotFoundException exception (that is built in java
>>> exception).
>>>
>>> So, How can I model java FileNotFoundException exception, It is better
>>> if
>>> you can give answer related to RSM modeling.
>>>
>>> I am specifying some RSM related exception handling tips below,
>>>
>>> 1. There is a property for method parameters in RSM called "Is
>>> Exception".
>>> 2. Also, there is another property for a method called "raised
>>> exception"
>>>
>>> Thanks.
>>>
>>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #471735 is a reply to message #471734] Tue, 20 March 2007 04:02 Go to previous message
Rafael Chaves is currently offline Rafael Chaves
Messages: 362
Registered: July 2009
Senior Member
Hi James,

OP = Original Poster/Original Post

James Bruck wrote:
> Hi Rafael,
>
> What's an OP?
> I agree that it is not fair to focus on product specific questions in this
> forum.
>
> - James.
>
>
> "Rafael Chaves" <chaves@inf.ufsc.nospam.br> wrote in message
> news:etn9oj$q45$1@utils.eclipse.org...
>> In this specific scenario, where a user wants to structurally model an
>> operation and the exceptions it throws, I actually can't see what is
>> lacking. The raisedExceptions property seems to be good enough. Or am I
>> missing something?
>>
>> It seems that what the OP wants is easily doable with UML2. The issue here
>> steems from the fact that the OP actually wants help on how to do that
>> with RSM, and that kind of question certainly does not belong to this
>> forum, and should be asked elsewhere.
>>
>> Rafael
>>
>> James Bruck wrote:
>>> From RSM if you visualize your java class, you will get a "disruptable"
>>> combined fragment for exceptions but this is a RSM customization and not
>>> part of the official spec. You might want to try visualization of your
>>> class to get a customized sequence diagram.
>>>
>>> Apart from what is described in the old newsgroup regarding modeling
>>> exception handling, I'm not aware of any other better (standard) way of
>>> modelling exceptions. Why are those tips from the old newsgroup not
>>> sufficient for you?
>>>
>>> I think that modelling exceptions is a sore point for UML in general.
>>>
>>> Regards,
>>>
>>> - James.
>>>
>>>
>>> "RSM User" <cdNs25100@yahoo.com> wrote in message
>>> news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
>>>> Thank James,
>>>>
>>>> I read those messages, but I feel it is not going to solve my problem
>>>>
>>>> I am further specifying my problem below,
>>>> I want to model a class diagram with a method called "ReadMyFile" and
>>>> that
>>>> method throws the FileNotFoundException exception (that is built in java
>>>> exception).
>>>>
>>>> So, How can I model java FileNotFoundException exception, It is better
>>>> if
>>>> you can give answer related to RSM modeling.
>>>>
>>>> I am specifying some RSM related exception handling tips below,
>>>>
>>>> 1. There is a property for method parameters in RSM called "Is
>>>> Exception".
>>>> 2. Also, there is another property for a method called "raised
>>>> exception"
>>>>
>>>> Thanks.
>>>>
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #599578 is a reply to message #471651] Fri, 16 March 2007 19:59 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Have a look at the old uml newsgroup 'eclipse.tools.uml2' around December
14 there was a thread about this.
The title of the message was "Modeling Exception Handling".

Regards,

- James.


"RSM user" <lasith100@yahoo.com> wrote in message
news:dd1351a94292c0b171a0b328caeb974d$1@www.eclipse.org...
> Hi All,
>
> I am using RSM 6 and 7. I need to model a class diagram with operation
> that throws an exception.
>
> for the method java code as followings,
>
> public String myMehtod(int a, String b)throws Exception{
> ---
> ---
> }
>
> Thanks.
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #599633 is a reply to message #471653] Mon, 19 March 2007 05:54 Go to previous message
Eclipse User
Originally posted by: cdNs25100.yahoo.com

Thank James,

I read those messages, but I feel it is not going to solve my problem

I am further specifying my problem below,
I want to model a class diagram with a method called "ReadMyFile" and that
method throws the FileNotFoundException exception (that is built in java
exception).

So, How can I model java FileNotFoundException exception, It is better if
you can give answer related to RSM modeling.

I am specifying some RSM related exception handling tips below,

1. There is a property for method parameters in RSM called "Is Exception".
2. Also, there is another property for a method called "raised exception"

Thanks.
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #601824 is a reply to message #471657] Mon, 19 March 2007 21:45 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
From RSM if you visualize your java class, you will get a "disruptable"
combined fragment for exceptions but this is a RSM customization and not
part of the official spec. You might want to try visualization of your
class to get a customized sequence diagram.

Apart from what is described in the old newsgroup regarding modeling
exception handling, I'm not aware of any other better (standard) way of
modelling exceptions. Why are those tips from the old newsgroup not
sufficient for you?

I think that modelling exceptions is a sore point for UML in general.

Regards,

- James.


"RSM User" <cdNs25100@yahoo.com> wrote in message
news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
> Thank James,
>
> I read those messages, but I feel it is not going to solve my problem
>
> I am further specifying my problem below,
> I want to model a class diagram with a method called "ReadMyFile" and that
> method throws the FileNotFoundException exception (that is built in java
> exception).
>
> So, How can I model java FileNotFoundException exception, It is better if
> you can give answer related to RSM modeling.
>
> I am specifying some RSM related exception handling tips below,
>
> 1. There is a property for method parameters in RSM called "Is Exception".
> 2. Also, there is another property for a method called "raised exception"
>
> Thanks.
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #601833 is a reply to message #471731] Tue, 20 March 2007 00:27 Go to previous message
Rafael Chaves is currently offline Rafael Chaves
Messages: 362
Registered: July 2009
Senior Member
In this specific scenario, where a user wants to structurally model an
operation and the exceptions it throws, I actually can't see what is
lacking. The raisedExceptions property seems to be good enough. Or am I
missing something?

It seems that what the OP wants is easily doable with UML2. The issue
here steems from the fact that the OP actually wants help on how to do
that with RSM, and that kind of question certainly does not belong to
this forum, and should be asked elsewhere.

Rafael

James Bruck wrote:
> From RSM if you visualize your java class, you will get a "disruptable"
> combined fragment for exceptions but this is a RSM customization and not
> part of the official spec. You might want to try visualization of your
> class to get a customized sequence diagram.
>
> Apart from what is described in the old newsgroup regarding modeling
> exception handling, I'm not aware of any other better (standard) way of
> modelling exceptions. Why are those tips from the old newsgroup not
> sufficient for you?
>
> I think that modelling exceptions is a sore point for UML in general.
>
> Regards,
>
> - James.
>
>
> "RSM User" <cdNs25100@yahoo.com> wrote in message
> news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
>> Thank James,
>>
>> I read those messages, but I feel it is not going to solve my problem
>>
>> I am further specifying my problem below,
>> I want to model a class diagram with a method called "ReadMyFile" and that
>> method throws the FileNotFoundException exception (that is built in java
>> exception).
>>
>> So, How can I model java FileNotFoundException exception, It is better if
>> you can give answer related to RSM modeling.
>>
>> I am specifying some RSM related exception handling tips below,
>>
>> 1. There is a property for method parameters in RSM called "Is Exception".
>> 2. Also, there is another property for a method called "raised exception"
>>
>> Thanks.
>>
>
>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #601846 is a reply to message #471732] Tue, 20 March 2007 03:04 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Rafael,

What's an OP?
I agree that it is not fair to focus on product specific questions in this
forum.

- James.


"Rafael Chaves" <chaves@inf.ufsc.nospam.br> wrote in message
news:etn9oj$q45$1@utils.eclipse.org...
> In this specific scenario, where a user wants to structurally model an
> operation and the exceptions it throws, I actually can't see what is
> lacking. The raisedExceptions property seems to be good enough. Or am I
> missing something?
>
> It seems that what the OP wants is easily doable with UML2. The issue here
> steems from the fact that the OP actually wants help on how to do that
> with RSM, and that kind of question certainly does not belong to this
> forum, and should be asked elsewhere.
>
> Rafael
>
> James Bruck wrote:
>> From RSM if you visualize your java class, you will get a "disruptable"
>> combined fragment for exceptions but this is a RSM customization and not
>> part of the official spec. You might want to try visualization of your
>> class to get a customized sequence diagram.
>>
>> Apart from what is described in the old newsgroup regarding modeling
>> exception handling, I'm not aware of any other better (standard) way of
>> modelling exceptions. Why are those tips from the old newsgroup not
>> sufficient for you?
>>
>> I think that modelling exceptions is a sore point for UML in general.
>>
>> Regards,
>>
>> - James.
>>
>>
>> "RSM User" <cdNs25100@yahoo.com> wrote in message
>> news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
>>> Thank James,
>>>
>>> I read those messages, but I feel it is not going to solve my problem
>>>
>>> I am further specifying my problem below,
>>> I want to model a class diagram with a method called "ReadMyFile" and
>>> that
>>> method throws the FileNotFoundException exception (that is built in java
>>> exception).
>>>
>>> So, How can I model java FileNotFoundException exception, It is better
>>> if
>>> you can give answer related to RSM modeling.
>>>
>>> I am specifying some RSM related exception handling tips below,
>>>
>>> 1. There is a property for method parameters in RSM called "Is
>>> Exception".
>>> 2. Also, there is another property for a method called "raised
>>> exception"
>>>
>>> Thanks.
>>>
>>
Re: How to model "Exception throwing" for operartion in uml 2 class diagram [message #601854 is a reply to message #471734] Tue, 20 March 2007 04:02 Go to previous message
Rafael Chaves is currently offline Rafael Chaves
Messages: 362
Registered: July 2009
Senior Member
Hi James,

OP = Original Poster/Original Post

James Bruck wrote:
> Hi Rafael,
>
> What's an OP?
> I agree that it is not fair to focus on product specific questions in this
> forum.
>
> - James.
>
>
> "Rafael Chaves" <chaves@inf.ufsc.nospam.br> wrote in message
> news:etn9oj$q45$1@utils.eclipse.org...
>> In this specific scenario, where a user wants to structurally model an
>> operation and the exceptions it throws, I actually can't see what is
>> lacking. The raisedExceptions property seems to be good enough. Or am I
>> missing something?
>>
>> It seems that what the OP wants is easily doable with UML2. The issue here
>> steems from the fact that the OP actually wants help on how to do that
>> with RSM, and that kind of question certainly does not belong to this
>> forum, and should be asked elsewhere.
>>
>> Rafael
>>
>> James Bruck wrote:
>>> From RSM if you visualize your java class, you will get a "disruptable"
>>> combined fragment for exceptions but this is a RSM customization and not
>>> part of the official spec. You might want to try visualization of your
>>> class to get a customized sequence diagram.
>>>
>>> Apart from what is described in the old newsgroup regarding modeling
>>> exception handling, I'm not aware of any other better (standard) way of
>>> modelling exceptions. Why are those tips from the old newsgroup not
>>> sufficient for you?
>>>
>>> I think that modelling exceptions is a sore point for UML in general.
>>>
>>> Regards,
>>>
>>> - James.
>>>
>>>
>>> "RSM User" <cdNs25100@yahoo.com> wrote in message
>>> news:19c1d92f894779ba87ce2016113f864d$1@www.eclipse.org...
>>>> Thank James,
>>>>
>>>> I read those messages, but I feel it is not going to solve my problem
>>>>
>>>> I am further specifying my problem below,
>>>> I want to model a class diagram with a method called "ReadMyFile" and
>>>> that
>>>> method throws the FileNotFoundException exception (that is built in java
>>>> exception).
>>>>
>>>> So, How can I model java FileNotFoundException exception, It is better
>>>> if
>>>> you can give answer related to RSM modeling.
>>>>
>>>> I am specifying some RSM related exception handling tips below,
>>>>
>>>> 1. There is a property for method parameters in RSM called "Is
>>>> Exception".
>>>> 2. Also, there is another property for a method called "raised
>>>> exception"
>>>>
>>>> Thanks.
>>>>
>
Previous Topic:How to upgrade version of applied profile
Next Topic:Load samples using UML2 2.1.0 API
Goto Forum:
  


Current Time: Thu Oct 23 12:25:56 GMT 2014

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

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