summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Event.h
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-05-14 10:17:47 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-05-14 10:17:47 (GMT)
commit6103616a5d463c2ecd8a274b4dff0a404ab35dde (patch)
treeb43d65ff8bd2631e103e1de0780e48989f62c1f9 /src/uscxml/messages/Event.h
parent066caf52957a7715e77f7f8b6fcaeea0c348ed64 (diff)
parent1c4f3c8ccf362429ad6c80a9291fc7534e0691ab (diff)
downloaduscxml-6103616a5d463c2ecd8a274b4dff0a404ab35dde.zip
uscxml-6103616a5d463c2ecd8a274b4dff0a404ab35dde.tar.gz
uscxml-6103616a5d463c2ecd8a274b4dff0a404ab35dde.tar.bz2
Merge branch 'master' of github.com:tklab-tud/uscxml
# Conflicts: # test/issues/test-issue116.scxml
Diffstat (limited to 'src/uscxml/messages/Event.h')
-rw-r--r--src/uscxml/messages/Event.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/uscxml/messages/Event.h b/src/uscxml/messages/Event.h
index b774f8a..fd9dd42 100644
--- a/src/uscxml/messages/Event.h
+++ b/src/uscxml/messages/Event.h
@@ -77,6 +77,14 @@
throw exc;\
}
+#define ERROR_EXECUTION_THROW3(evt,caption,node) \
+{\
+ auto it = evt.data.compound.find("cause"); \
+ ERROR_EXECUTION2(exc,it!=evt.data.compound.end() ? it->second.atom : "",node); \
+ exc.data.compound["caption"] = uscxml::Data(caption, uscxml::Data::VERBATIM); \
+ throw exc;\
+}
+
#define ERROR_COMMUNICATION_THROW(cause) \
{\
ERROR_COMMUNICATION(exc, cause); \