|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.remote.ErrorCodes
io.appium.java_client.ErrorCodesMobile
public class ErrorCodesMobile
Defines common error codes for the mobile JSON wire protocol.
Field Summary | |
---|---|
static int |
NO_SUCH_CONTEXT
|
Fields inherited from class org.openqa.selenium.remote.ErrorCodes |
---|
ASYNC_SCRIPT_TIMEOUT, ELEMENT_NOT_SELECTABLE, ELEMENT_NOT_VISIBLE, IME_ENGINE_ACTIVATION_FAILED, IME_NOT_AVAILABLE, INVALID_COOKIE_DOMAIN, INVALID_ELEMENT_COORDINATES, INVALID_ELEMENT_STATE, INVALID_SELECTOR_ERROR, INVALID_XPATH_SELECTOR, INVALID_XPATH_SELECTOR_RETURN_TYPER, JAVASCRIPT_ERROR, METHOD_NOT_ALLOWED, MOVE_TARGET_OUT_OF_BOUNDS, NO_ALERT_PRESENT, NO_SUCH_ELEMENT, NO_SUCH_FRAME, NO_SUCH_SESSION, NO_SUCH_WINDOW, SESSION_NOT_CREATED, STALE_ELEMENT_REFERENCE, SUCCESS, SUCCESS_STRING, TIMEOUT, UNABLE_TO_SET_COOKIE, UNEXPECTED_ALERT_PRESENT, UNHANDLED_ERROR, UNKNOWN_COMMAND, XPATH_LOOKUP_ERROR |
Constructor Summary | |
---|---|
ErrorCodesMobile()
|
Method Summary | |
---|---|
Class<? extends org.openqa.selenium.WebDriverException> |
getExceptionType(int statusCode)
Returns the exception type that corresponds to the given statusCode . |
Class<? extends org.openqa.selenium.WebDriverException> |
getExceptionType(String message)
|
int |
toStatusCode(Throwable thrown)
Converts a thrown error into the corresponding status code. |
Methods inherited from class org.openqa.selenium.remote.ErrorCodes |
---|
isMappableError, toState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_SUCH_CONTEXT
Constructor Detail |
---|
public ErrorCodesMobile()
Method Detail |
---|
public Class<? extends org.openqa.selenium.WebDriverException> getExceptionType(int statusCode)
statusCode
. All unrecognized
status codes will be mapped to WebDriverException.class
.
getExceptionType
in class org.openqa.selenium.remote.ErrorCodes
statusCode
- The status code to convert.
null
if
statusCode == 0
.public Class<? extends org.openqa.selenium.WebDriverException> getExceptionType(String message)
message
- An error message returned by Appium server
null
if
there are no matching mobile exceptions.public int toStatusCode(Throwable thrown)
toStatusCode
in class org.openqa.selenium.remote.ErrorCodes
thrown
- The thrown error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |