Skip to main content


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 15:45 Go to next message
Sascha Steffen is currently offline Sascha SteffenFriend
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 16:56 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
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 20:14 Go to previous message
Sascha Steffen is currently offline Sascha SteffenFriend
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: Tue Apr 16 17:32:14 GMT 2024

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

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

Back to the top