Examples of TimeoutException


Examples of org.openqa.selenium.TimeoutException

                // Do nothing just break out
                break;
            }
        }
        getUtil().takeScreenshot();
        throw new TimeoutException("Livetable isn't ready after the timeout has expired. Source ["
            + getDriver().getPageSource() + "]");
    }
View Full Code Here

Examples of org.ops4j.pax.exam.TimeoutException

    }

    public void waitForState(final long bundleId, final int state, final RelativeTimeout timeout) {
        Bundle bundle = bundleContext.getBundle(bundleId);
        if (bundle == null || (timeout.isNoWait() && (bundle == null || bundle.getState() < state))) {
            throw new TimeoutException("There is no waiting timeout set and bundle has state '"
                + bundleStateToString(bundle) + "' not '" + bundleStateToString(state)
                + "' as expected");
        }
        long startedTrying = System.currentTimeMillis();
        do {
            bundle = bundleContext.getBundle(bundleId);
            try {
                Thread.sleep(50);
            }
            catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                break;
            }
        }
        while ((bundle == null || bundle.getState() < state)
            && (timeout.isNoTimeout() || System.currentTimeMillis() < startedTrying
                + timeout.getValue()));

        if (bundle == null || bundle.getState() < state) {
            throw new TimeoutException("Timeout passed and bundle has state '"
                + bundleStateToString(bundle.getState()) + "' not '" + bundleStateToString(state)
                + "' as expected");
        }
    }
View Full Code Here

Examples of org.rhq.core.pc.inventory.TimeoutException

                        + "] is hung. This exception contains its stack trace.");
                    cause.setStackTrace(stackTrace);
                } else {
                    cause = null;
                }
                TimeoutException timeoutException = new TimeoutException(msg, cause);
                future.cancel(true);
                throw timeoutException;
            }
        }
View Full Code Here

Examples of org.rioproject.test.TimeoutException

                if (condition.test()) {   // -> STABILITY_WAIT
                    state = STABILITY_WAIT;
                    stabilityTime = time + getStabilityTimeout();
                    logger.info("Ensuring stable state ...");
                } else if (time > maxTime) {        // ERROR
                    throw new TimeoutException();
                }
            } else {
                if (!condition.test()) {   // -> WAIT
                    state = WAIT;
                    logger.info("Waiting again ...");
                } else if (time > stabilityTime) {  // SUCCESS
                    break;
                } else if (time > maxTime) {        // ERROR
                    throw new TimeoutException();
                }
            }
            try {
                Thread.sleep(TIME_STEP);
            } catch (InterruptedException e) {
View Full Code Here

Examples of org.sat4j.specs.TimeoutException

    public boolean model(int var) {
        throw new UnsupportedOperationException();
    }

    public boolean isSatisfiable() throws TimeoutException {
        throw new TimeoutException("There is no real solver behind!");
    }
View Full Code Here

Examples of org.semanticweb.owlapi.reasoner.TimeOutException

    }
    public void checkInterrupt() {
        InterruptType interruptType=m_interruptType;
        if (interruptType!=null) {
            if (interruptType==InterruptType.TIMEOUT)
                throw new TimeOutException();
            else
                throw new ReasonerInterruptedException();
        }
    }
View Full Code Here

Examples of org.smslib.TimeoutException

      while (true)
      {
        try
        {
          if (this.bufferStart == this.bufferEnd) wait(Service.getInstance().getSettings().SERIAL_TIMEOUT);
          if (this.bufferStart == this.bufferEnd) throw new TimeoutException("No response from device.");
          c = this.buffer[this.bufferStart];
          this.bufferStart++;
          if (this.bufferStart == Service.getInstance().getSettings().SERIAL_BUFFER_SIZE) this.bufferStart = 0;
          return c;
        }
View Full Code Here

Examples of org.svnadmin.exceptions.TimeoutException

   * @param request
   *            请求
   */
  protected void validate(HttpServletRequest request) {
    if (!hasLogin(request)) {
      throw new TimeoutException(I18N.getLbl(request,"sys.error.timeout","超时或未登录"));
    }
  }
View Full Code Here

Examples of se.despotify.exceptions.TimeoutException

    long started = System.currentTimeMillis();

    try {
      // wait for data to become available.
      if (!this.done.tryAcquire(timeout, timeoutUnit)) {
        throw new TimeoutException(System.currentTimeMillis() - started);
      }
    } catch (InterruptedException e) {
      log.error("Exception while waiting for data", e);
    }
//    this.done.acquireUninterruptibly();
View Full Code Here

Examples of synalp.commons.utils.exceptions.TimeoutException

   * @param message the message of the TimeoutException
   */
  public static void checkTimeout(String message)
  {
    if (GeneratorOption.TIMEOUT > 0 && getTimeSinceStart() > GeneratorOption.TIMEOUT)
      throw new TimeoutException(message);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.