} catch (TimingOutCallback.TimeoutException e) { LOGGER.info("Timeout: ", e); throw new XmlRpcException(e.getMessage()); } catch (XmlRpcException e) { LOGGER.info("XML RPC Exception occured: ", e);
/** Called to wait for the response. * @throws InterruptedException The thread was interrupted. * @throws TimeoutException No response was received after waiting the specified time. * @throws Throwable An error was returned by the server. */ public synchronized Object waitForResponse() throws Throwable { if (!responseSeen) { wait(timeout); if (!responseSeen) { throw new TimeoutException(0, "No response after waiting for " + timeout + " milliseconds."); } } if (error != null) { throw error; } return result; }
/** Called to wait for the response. * @throws InterruptedException The thread was interrupted. * @throws TimeoutException No response was received after waiting the specified time. * @throws Throwable An error was returned by the server. */ public synchronized Object waitForResponse() throws Throwable { wait(timeout); if (!responseSeen) { throw new TimeoutException(0, "No response after waiting for " + timeout + " milliseconds."); } if (error != null) { throw error; } return result; }
/** Called to wait for the response. * @throws InterruptedException The thread was interrupted. * @throws TimeoutException No response was received after waiting the specified time. * @throws Throwable An error was returned by the server. */ public synchronized Object waitForResponse() throws Throwable { if (!responseSeen) { wait(timeout); if (!responseSeen) { throw new TimeoutException(0, "No response after waiting for " + timeout + " milliseconds."); } } if (error != null) { throw error; } return result; }