summaryrefslogtreecommitdiffstats
path: root/src/uscxml/URL.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-01 22:51:30 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-01 22:51:30 (GMT)
commit945160d0539ad119ffc986fac712db76c7203e84 (patch)
treec43e4a7db898026bc62cc20af5061d07736f847e /src/uscxml/URL.cpp
parentc70d02010ea99e6c8e35da3b767f41f1ee5dce56 (diff)
downloaduscxml-945160d0539ad119ffc986fac712db76c7203e84.zip
uscxml-945160d0539ad119ffc986fac712db76c7203e84.tar.gz
uscxml-945160d0539ad119ffc986fac712db76c7203e84.tar.bz2
More polishing for bindings C# and Java
Diffstat (limited to 'src/uscxml/URL.cpp')
-rw-r--r--src/uscxml/URL.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/uscxml/URL.cpp b/src/uscxml/URL.cpp
index aaf4cde..08135fd 100644
--- a/src/uscxml/URL.cpp
+++ b/src/uscxml/URL.cpp
@@ -364,19 +364,19 @@ const void URLImpl::download(bool blocking) {
_condVar.wait(_mutex); // wait for notification
}
if (_hasFailed) {
- Event exception;
- exception.name = "error.communication";
- exception.data = URL(shared_from_this());
+ ERROR_COMMUNICATION(exc, _error);
+ exc.data = URL(shared_from_this());
if (_error.length() > 0)
- exception.data.compound["reason"] = Data(_error, Data::VERBATIM);
- throw exception;
+ exc.data.compound["cause"] = Data(_error, Data::VERBATIM);
+ throw exc;
}
if (iequals(scheme(), "http")) {
if (_statusCode.size() > 0 && boost::lexical_cast<int>(_statusCode) > 400) {
- Event exception;
- exception.name = "error.communication";
- exception.data = URL(shared_from_this());
- throw exception;
+ ERROR_COMMUNICATION(exc, _error);
+ exc.data = URL(shared_from_this());
+ if (_error.length() > 0)
+ exc.data.compound["cause"] = Data(_error, Data::VERBATIM);
+ throw exc;
}
}
}