summaryrefslogtreecommitdiff
path: root/service/api.ice
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-10 13:45:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-10 13:45:40 +0000
commit743f77d3161676c9c62ac648d8d85fac93da6259 (patch)
tree7f89ebafc57009ba98c0c7e21e5226c28d830a0a /service/api.ice
parentConfigure install rules (diff)
downloadmirrorsearch-743f77d3161676c9c62ac648d8d85fac93da6259.tar.bz2
mirrorsearch-743f77d3161676c9c62ac648d8d85fac93da6259.tar.xz
mirrorsearch-743f77d3161676c9c62ac648d8d85fac93da6259.zip
Tighten error handling
Diffstat (limited to 'service/api.ice')
-rw-r--r--service/api.ice9
1 files changed, 7 insertions, 2 deletions
diff --git a/service/api.ice b/service/api.ice
index 994fa28..a8c50e9 100644
--- a/service/api.ice
+++ b/service/api.ice
@@ -9,10 +9,15 @@ module MirrorSearch {
string msg;
};
+ ["cpp:ice_print"]
+ exception CurlError {
+ string msg;
+ };
+
interface Search {
idempotent SearchServices getServices();
- idempotent SearchHits getMatches(string filename) throws XmlError;
- idempotent optional(0) string feelingLucky(string filename) throws XmlError;
+ idempotent SearchHits getMatches(string filename) throws XmlError, CurlError;
+ idempotent optional(0) string feelingLucky(string filename) throws XmlError, CurlError;
};
};