org.openqa.selenium.remote
Class ErrorHandler
java.lang.Object
org.openqa.selenium.remote.ErrorHandler
public class ErrorHandler
- extends Object
Maps exceptions to status codes for sending over the wire.
- Author:
- [email protected] (Jason Leyba)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorHandler
public ErrorHandler()
ErrorHandler
public ErrorHandler(boolean includeServerErrors)
- Parameters:
includeServerErrors
- Whether to include server-side details in thrown exceptions if the
information is available.
isIncludeServerErrors
public boolean isIncludeServerErrors()
setIncludeServerErrors
public void setIncludeServerErrors(boolean includeServerErrors)
throwIfResponseFailed
public Response throwIfResponseFailed(Response response,
long duration)
throws RuntimeException
- Throws:
RuntimeException
Copyright © 2012. All Rights Reserved.