Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EGL] Abort processing / throw error or something like that
[EGL] Abort processing / throw error or something like that [message #1072362] Mon, 22 July 2013 11:45 Go to next message
Sascha Steffen is currently offline Sascha Steffen
Messages: 2
Registered: July 2013
Junior Member
Hi,

I'm kind of a newbie with Epsilon so forgive me for asking this kind of basic question, but i can't figure out how to throw an error or something similar from within an EGL-Template.

How can this be achieved?
Re: [EGL] Abort processing / throw error or something like that [message #1072390 is a reply to message #1072362] Mon, 22 July 2013 12:56 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 795
Registered: July 2009
Senior Member
Hi,

In a dynamic region (i.e. within [% %]) you can add a throw statement:

[%
if (horribleThingsHaveHappened) {
throw "I quit";
}
%]

Cheers,
Dimitris
Re: [EGL] Abort processing / throw error or something like that [message #1072457 is a reply to message #1072390] Mon, 22 July 2013 16:14 Go to previous message
Sascha Steffen is currently offline Sascha Steffen
Messages: 2
Registered: July 2013
Junior Member
Okay. That was easy. Thanks.
Previous Topic:EOL polishing script setup
Next Topic:GMFtool node remove
Goto Forum:
  


Current Time: Mon Jul 28 10:41:50 EDT 2014

Powered by FUDForum. Page generated in 0.03920 seconds