|
|
|
|
Re: How model exception throws in Java [message #1230989 is a reply to message #1230914] |
Mon, 13 January 2014 09:35  |
Eclipse User |
|
|
|
Hi
You seem to be confusing domains.
You were discussing modeling exceptions in UML.
Now you ask about an exception in Acceleo which impleemnts MOFM2T but
defines no exception capability.
MOFM2T extends OCL which also does not throw exceptions; rather using
in-band passing of invalid values.
If you contrive to get Acceleo to execute code that throw an exception,
you shoukld find that Acceleo treats it as OCL's invalid.
Alternatively if you define UML function bodies you would normally use
OCL and so get no exceptions. ALF too gives no exceptions.
I think you will only get java exceptions if you code Java exception
throwing manually, perhaps using some OCL/ALF black box queries that throw.
Regards
Ed Willink
On 13/01/2014 11:12, Claudio Retico wrote:
> And you suppose this will work with Acceleo UML2 Java transformation
> i.e. i will find the throws in generated code ?
> I later will try.
>
> Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.29891 seconds