|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.remote.ErrorHandler
public class ErrorHandler
Maps exceptions to status codes for sending over the wire.
| Nested Class Summary | |
|---|---|
static class |
ErrorHandler.UnknownServerException
Exception used as a place holder if the server returns an error without a stack trace. |
| Constructor Summary | |
|---|---|
ErrorHandler()
|
|
ErrorHandler(boolean includeServerErrors)
|
|
| Method Summary | |
|---|---|
boolean |
isIncludeServerErrors()
|
void |
setIncludeServerErrors(boolean includeServerErrors)
|
Response |
throwIfResponseFailed(Response response,
long duration)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorHandler()
public ErrorHandler(boolean includeServerErrors)
includeServerErrors - Whether to include server-side details in thrown exceptions if the
information is available.| Method Detail |
|---|
public boolean isIncludeServerErrors()
public void setIncludeServerErrors(boolean includeServerErrors)
public Response throwIfResponseFailed(Response response,
long duration)
throws java.lang.RuntimeException
java.lang.RuntimeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||