Package org.openqa.selenium.remote
Class ErrorHandler
- java.lang.Object
-
- org.openqa.selenium.remote.ErrorHandler
-
public class ErrorHandler extends java.lang.Object
Maps exceptions to status codes for sending over the wire.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ErrorHandler.UnknownServerException
Exception 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 boolean
isIncludeServerErrors()
void
setIncludeServerErrors(boolean includeServerErrors)
Response
throwIfResponseFailed(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.
-
-