[Java,C#] Use SWIG_exception() to handle exceptions
commit6af2e6441c33bdc3b256c512caa43264e6f07169
authorOlly Betts <olly@survex.com>
Mon, 15 Jan 2018 21:23:07 +0000 (16 10:23 +1300)
committerOlly Betts <olly@survex.com>
Mon, 15 Jan 2018 21:23:07 +0000 (16 10:23 +1300)
tree689de98bae0cadd3a9635e8c77a3b1961e26dd28
parent356ea64fa21c7d6d5974e5e8dac796c000fe84e6
[Java,C#] Use SWIG_exception() to handle exceptions

It seems this didn't used to work with older SWIG, but it does with
current versions, and using it means that we skip any return value
translation logic when an exception has been thrown.
xapian-bindings/csharp/csharp.i
xapian-bindings/generic/generate-generic-exceptions
xapian-bindings/java/java.i