Class ErrorCodes

java.lang.Object
org.openqa.selenium.remote.ErrorCodes

@Deprecated(forRemoval=true) public class ErrorCodes extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Defines common error codes for the wire protocol.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getExceptionType(int statusCode)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the exception type that corresponds to the given statusCode.
    getExceptionType(String webdriverState)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    toState(Integer status)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    toStatus(String webdriverState, Optional<Integer> httpStatus)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SUCCESS_STRING

      public static final String SUCCESS_STRING
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • SUCCESS

      public static final int SUCCESS
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NO_SUCH_SESSION

      public static final int NO_SUCH_SESSION
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NO_SUCH_ELEMENT

      public static final int NO_SUCH_ELEMENT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NO_SUCH_FRAME

      public static final int NO_SUCH_FRAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • UNKNOWN_COMMAND

      public static final int UNKNOWN_COMMAND
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STALE_ELEMENT_REFERENCE

      public static final int STALE_ELEMENT_REFERENCE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • INVALID_ELEMENT_STATE

      public static final int INVALID_ELEMENT_STATE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • UNHANDLED_ERROR

      public static final int UNHANDLED_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • JAVASCRIPT_ERROR

      public static final int JAVASCRIPT_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • XPATH_LOOKUP_ERROR

      public static final int XPATH_LOOKUP_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • TIMEOUT

      public static final int TIMEOUT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NO_SUCH_WINDOW

      public static final int NO_SUCH_WINDOW
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • UNEXPECTED_ALERT_PRESENT

      public static final int UNEXPECTED_ALERT_PRESENT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NO_ALERT_PRESENT

      public static final int NO_ALERT_PRESENT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ASYNC_SCRIPT_TIMEOUT

      public static final int ASYNC_SCRIPT_TIMEOUT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • INVALID_SELECTOR_ERROR

      public static final int INVALID_SELECTOR_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • SESSION_NOT_CREATED

      public static final int SESSION_NOT_CREATED
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • MOVE_TARGET_OUT_OF_BOUNDS

      public static final int MOVE_TARGET_OUT_OF_BOUNDS
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • INVALID_XPATH_SELECTOR

      public static final int INVALID_XPATH_SELECTOR
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • INVALID_XPATH_SELECTOR_RETURN_TYPER

      public static final int INVALID_XPATH_SELECTOR_RETURN_TYPER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ELEMENT_NOT_INTERACTABLE

      public static final int ELEMENT_NOT_INTERACTABLE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • INVALID_ARGUMENT

      public static final int INVALID_ARGUMENT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • UNABLE_TO_CAPTURE_SCREEN

      public static final int UNABLE_TO_CAPTURE_SCREEN
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ELEMENT_CLICK_INTERCEPTED

      public static final int ELEMENT_CLICK_INTERCEPTED
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NO_SUCH_SHADOW_ROOT

      public static final int NO_SUCH_SHADOW_ROOT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • METHOD_NOT_ALLOWED

      public static final int METHOD_NOT_ALLOWED
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • ErrorCodes

      public ErrorCodes()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • toState

      public String toState(Integer status)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toStatus

      public int toStatus(String webdriverState, Optional<Integer> httpStatus)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getHttpStatusCode

      public int getHttpStatusCode(Throwable throwable)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getExceptionType

      public Class<? extends WebDriverException> getExceptionType(int statusCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the exception type that corresponds to the given statusCode. All unrecognized status codes will be mapped to WebDriverException.class.
      Parameters:
      statusCode - The status code to convert.
      Returns:
      The exception type that corresponds to the provided status code or null if statusCode == 0.
    • getExceptionType

      public Class<? extends WebDriverException> getExceptionType(String webdriverState)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toStatusCode

      public int toStatusCode(Throwable e)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isMappableError

      public boolean isMappableError(Throwable rootCause)
      Deprecated, for removal: This API element is subject to removal in a future version.