From 743f77d3161676c9c62ac648d8d85fac93da6259 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 10 Mar 2018 13:45:40 +0000 Subject: Tighten error handling --- service/api.ice | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'service/api.ice') 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; }; }; -- cgit v1.2.3