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.
  • Constructor Details Link icon

    • ErrorHandler Link icon

      public ErrorHandler()
    • ErrorHandler Link icon

      public ErrorHandler(boolean includeServerErrors)
      Parameters:
      includeServerErrors - Whether to include server-side details in thrown exceptions if the information is available.
    • ErrorHandler Link icon

      public ErrorHandler(ErrorCodes codes, boolean includeServerErrors)
      Parameters:
      codes - The ErrorCodes object to use for linking error codes to exceptions.
      includeServerErrors - Whether to include server-side details in thrown exceptions if the information is available.
  • Method Details Link icon

    • isIncludeServerErrors Link icon

      public boolean isIncludeServerErrors()
    • setIncludeServerErrors Link icon

      public void setIncludeServerErrors(boolean includeServerErrors)
    • throwIfResponseFailed Link icon

      public Response throwIfResponseFailed(Response response, long duration) throws RuntimeException
      Throws:
      RuntimeException