From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: Should thick bindings throw an exception? Date: Sun, 27 Jul 2014 19:07:56 +0300 Organization: Aioe.org NNTP Server Message-ID: NNTP-Posting-Host: rFX7cZOSaeuGGZI2vwQTaQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.12.4 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:187940 Date: 2014-07-27T19:07:56+03:00 List-Id: Should a thick bindings of a C function, which returns non-0 on failure, instead throw an exception on failure? By the way, should I define a new exception or use one of language pre- defined exception? The description of the C function follows: int raptor_uri_print (const raptor_uri *uri, FILE *stream); Print a URI to a file handle. uri : URI to print stream : The file handle to print to Returns : non-0 on failure -- Victor Porton - http://portonvictor.org