check if exception is alreadyanXmlRpcException
This commit is contained in:
parent
1e85cbf4ac
commit
c979f8ee21
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue