Skip to content

Commit

Permalink
Error handling for startSession is handled in the parent class now.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Apr 7, 2014
1 parent a459010 commit eaf22a4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions java/client/src/org/openqa/selenium/chrome/ChromeDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,4 @@ public <X> X getScreenshotAs(OutputType<X> target) {
// ... and convert it.
return target.convertFromBase64Png(base64);
}

@Override
protected void startSession(Capabilities desiredCapabilities,
Capabilities requiredCapabilities) {
try {
super.startSession(desiredCapabilities, requiredCapabilities);
} catch (WebDriverException e) {
try {
quit();
} catch (Throwable t) {
// Ignoring to report the exception thrown earlier.
}

throw e;
}
}
}

0 comments on commit eaf22a4

Please sign in to comment.