Package com.gargoylesoftware.htmlunit

Examples of com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException


  public void clickButtonWithText(String buttonValueText) {
    try {
      super.clickButtonWithText(buttonValueText);
    } catch (RuntimeException f) {
      if (f.getCause() instanceof FailingHttpStatusCodeException) {
        FailingHttpStatusCodeException f2 = (FailingHttpStatusCodeException) f.getCause();
        // if we failed at exception.php, we can try and read out the error
        if (PhpRuntimeExceptionException.canHandle(f2)) {
          throw new PhpRuntimeExceptionException(f2);
        }
      }
View Full Code Here


  public void submit() {
    try {
      super.submit();
    } catch (TestingEngineResponseException f) {
      if (f.getCause() instanceof FailingHttpStatusCodeException) {
        FailingHttpStatusCodeException f2 = (FailingHttpStatusCodeException) f.getCause();
        // if we failed at exception.php, we can try and read out the error
        if (PhpRuntimeExceptionException.canHandle(f2)) {
          throw new PhpRuntimeExceptionException(f2);
        }
      }
View Full Code Here

      throw (WebTestException) e;
    }
    else if (e instanceof FailingHttpStatusCodeException)
    {
      LOG.debug("Wrapping FailingHttpStatusCodeException in StepFailedException: " + e.getMessage());
      final FailingHttpStatusCodeException he = (FailingHttpStatusCodeException) e;
      throw new StepFailedException("HTTP error " + he.getStatusCode(), he);
    }
    else if (e instanceof XPathException)
    {
      LOG.debug("Wrapping XPathException in StepFailedException: " + e.getMessage());
      throw new StepFailedException(e.getMessage(), (Exception) e);
View Full Code Here

TOP

Related Classes of com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException

Copyright © 2018 www.massapicom. 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.