diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-11 07:58:48 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-11 07:58:48 (GMT) |
commit | 71c334bf4e35559496feac3f3cf00b72ceb88812 (patch) | |
tree | 859f78af51c8e929559a53d70492035ef3fad862 /src/uscxml/Factory.cpp | |
parent | 5180e4666a314db36a15d953fdfa38af4f285758 (diff) | |
download | uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.zip uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.tar.gz uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.tar.bz2 |
More work on promela DM
changed const of Data subscript operator and introduced at(key) and item(index)
Diffstat (limited to 'src/uscxml/Factory.cpp')
-rw-r--r-- | src/uscxml/Factory.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/uscxml/Factory.cpp b/src/uscxml/Factory.cpp index a66b024..5f3d172 100644 --- a/src/uscxml/Factory.cpp +++ b/src/uscxml/Factory.cpp @@ -607,6 +607,23 @@ void EventHandlerImpl::returnEvent(Event& event) { _interpreter->receive(event); } +void DataModelImpl::throwErrorExecution(const std::string& cause) { + uscxml::Event exc; + exc.data.compound["exception"] = uscxml::Data(cause, uscxml::Data::VERBATIM); + exc.name = "error.execution"; + exc.eventType = uscxml::Event::PLATFORM; + throw exc; +} + +void DataModelImpl::throwErrorPlatform(const std::string& cause) { + uscxml::Event exc; + exc.data.compound["exception"] = uscxml::Data(cause, uscxml::Data::VERBATIM); + exc.name = "error.platform"; + exc.eventType = uscxml::Event::PLATFORM; + throw exc; +} + + Factory* Factory::_instance = NULL; std::string Factory::pluginPath; }
\ No newline at end of file |