|
|
Re: Runtime exception handling? [message #1006992 is a reply to message #1006972] |
Sun, 03 February 2013 11:33  |
Eclipse User |
|
|
|
Op 03-02-13 12:42, Alessandro Ranieri schreef:
> I'm also interested in this topic. Is there any way in which to do exception
> handling? For example, is there an instruction to terminate the execution that
> one can use for example in a if construct in the do section? Something like:
>
> do {
> if ( something unexpected ){
> terminateWithError
> }
> }
>
> I think this approach, altough some validation should be made earlier on the
> input model, can be useful in this phase when the validation is supported from
> few tools. For example Papyrus doesn't support that.
>
> Thanks for the reply,
>
> Alessandro R.
No, ATL cannot throw or catch exceptions. It's just not compatible with the
unordered rules philosophy. You'll have to do validation in another way, e.g.
using an ATL query, EMF Validation, or EMF-IncQuery.
Regards,
Dennis
|
|
|
Powered by
FUDForum. Page generated in 0.09623 seconds