UnexpectedResponseException
extends RuntimeException
in package
implements
PhpWebDriverExceptionInterface
Exception thrown on invalid or unexpected server response.
Table of Contents
Interfaces
- PhpWebDriverExceptionInterface
- Common interface to identify all exceptions thrown in php-webdriver (both those of WebDriver protocol and internal).
Methods
- forCapabilitiesRetrievalError() : self
- forElementNotArray() : self
- forError() : self
- forJsonDecodingError() : self
Methods
forCapabilitiesRetrievalError()
public
static forCapabilitiesRetrievalError(Exception $previousException) : self
Parameters
- $previousException : Exception
Return values
selfforElementNotArray()
public
static forElementNotArray(mixed $response) : self
Parameters
- $response : mixed
Return values
selfforError()
public
static forError(string $message) : self
Parameters
- $message : string
Return values
selfforJsonDecodingError()
public
static forJsonDecodingError(int $jsonLastError, string $rawResults) : self
Parameters
- $jsonLastError : int
- $rawResults : string