Example usage for java.lang NoClassDefFoundError getStackTrace

List of usage examples for java.lang NoClassDefFoundError getStackTrace

Introduction

In this page you can find the example usage for java.lang NoClassDefFoundError getStackTrace.

Prototype

public StackTraceElement[] getStackTrace() 

Source Link

Document

Provides programmatic access to the stack trace information printed by #printStackTrace() .

Usage

From source file:seleniumAutomation.Selenium.java

public void InitializeFirefox() {
    this.driver = null;
    try {/*from www  .  j  av a  2 s . c o m*/
        this.driver = new FirefoxDriver();
    } catch (NoClassDefFoundError ex) {
        System.err.println("error: " + ex.getStackTrace());
    }
    this.driver.manage().timeouts().pageLoadTimeout(120, TimeUnit.SECONDS);
    this.efwd = new EventFiringWebDriver(driver);
}

From source file:seleniumAutomation.Selenium.java

public void InitializeHUD() {
    this.driver = null;
    try {/*ww w  . ja v a  2 s .  com*/
        this.driver = new HtmlUnitDriver();
    } catch (NoClassDefFoundError ex) {
        System.err.println("error: " + ex.getStackTrace());
    }
    this.driver.manage().timeouts().pageLoadTimeout(120, TimeUnit.SECONDS);
    this.efwd = new EventFiringWebDriver(driver);
}