Package org.openqa.selenium.remote
Class ErrorHandler
- java.lang.Object
-
- org.openqa.selenium.remote.ErrorHandler
-
public class ErrorHandler extends java.lang.ObjectMaps exceptions to status codes for sending over the wire.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorHandler.UnknownServerExceptionException used as a place holder if the server returns an error without a stack trace.
-
Constructor Summary
Constructors Constructor Description ErrorHandler()ErrorHandler(boolean includeServerErrors)ErrorHandler(ErrorCodes codes, boolean includeServerErrors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisIncludeServerErrors()voidsetIncludeServerErrors(boolean includeServerErrors)ResponsethrowIfResponseFailed(Response response, long duration)
-
-
-
Constructor Detail
-
ErrorHandler
public ErrorHandler()
-
ErrorHandler
public ErrorHandler(boolean includeServerErrors)
- Parameters:
includeServerErrors- Whether to include server-side details in thrown exceptions if the information is available.
-
ErrorHandler
public ErrorHandler(ErrorCodes codes, boolean includeServerErrors)
- Parameters:
includeServerErrors- Whether to include server-side details in thrown exceptions if the information is available.codes- The ErrorCodes object to use for linking error codes to exceptions.
-
-