class UnexpectedResponseException extends RuntimeException implements PhpWebDriverExceptionInterface (View source)

Exception thrown on invalid or unexpected server response.

Methods

forError(string $message)

No description

forElementNotArray($response)

No description

forJsonDecodingError(int $jsonLastError, string $rawResults)

No description

forCapabilitiesRetrievalError(Exception $previousException)

No description

Details

static UnexpectedResponseException forError(string $message)

No description

Parameters

string $message

Return Value

UnexpectedResponseException

static UnexpectedResponseException forElementNotArray($response)

No description

Parameters

$response

Return Value

UnexpectedResponseException

static UnexpectedResponseException forJsonDecodingError(int $jsonLastError, string $rawResults)

No description

Parameters

int $jsonLastError
string $rawResults

Return Value

UnexpectedResponseException

static UnexpectedResponseException forCapabilitiesRetrievalError(Exception $previousException)

No description

Parameters

Exception $previousException

Return Value

UnexpectedResponseException