check if exception is alreadyanXmlRpcException

This commit is contained in:
hns 2001-01-24 14:26:14 +00:00
parent 1e85cbf4ac
commit c979f8ee21

View file

@ -275,7 +275,12 @@ class Invoker implements XmlRpcHandler {
catch (InvocationTargetException it_e) {
if (XmlRpc.debug)
it_e.getTargetException ().printStackTrace ();
throw new Exception (it_e.getTargetException ().toString ());
// check whether the thrown exception is XmlRpcException
Throwable t=it_e.getTargetException();
if ( t instanceof XmlRpcException)
throw (XmlRpcException) t;
// It is some other exception
throw new Exception (t.toString ());
}
return returnValue;