Throw specific Java exceptions

This change causes SWIG to throw the exceptions expected by the Hot Rod
client test case code, instead of always throwing RuntimeException.

(Updated to add the Exception case, and to throw java.lang.Exception,
instead of RuntimeError when a std::exception is thrown.)