diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-01 22:51:30 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-01 22:51:30 (GMT) |
commit | 945160d0539ad119ffc986fac712db76c7203e84 (patch) | |
tree | c43e4a7db898026bc62cc20af5061d07736f847e /src/uscxml/plugins/datamodel/prolog | |
parent | c70d02010ea99e6c8e35da3b767f41f1ee5dce56 (diff) | |
download | uscxml-945160d0539ad119ffc986fac712db76c7203e84.zip uscxml-945160d0539ad119ffc986fac712db76c7203e84.tar.gz uscxml-945160d0539ad119ffc986fac712db76c7203e84.tar.bz2 |
More polishing for bindings C# and Java
Diffstat (limited to 'src/uscxml/plugins/datamodel/prolog')
-rw-r--r-- | src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp index ad0c42b..8f5e588 100644 --- a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp +++ b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp @@ -37,10 +37,7 @@ extern "C" { } #define RETHROW_PLEX_AS_EVENT \ catch (PlException plex) { \ - Event e; \ - e.name = "error.execution"; \ - e.data.compound["cause"] = (char*)plex; \ - throw e; \ + ERROR_EXECUTION_THROW((char*)plex); \ } \ #define PL_MODULE \ @@ -733,10 +730,7 @@ std::string SWIDataModel::evalAsString(const std::string& expr) { if (term.type() == PL_ATOM || term.type() == PL_CHARS || term.type() == PL_STRING) { return std::string(term); } else { - Event e; - e.name = "error.execution"; - e.data.compound["cause"] = (char*)plex; - throw e; + ERROR_EXECUTION_THROW((char*)plex); } } } |