JSDoc: Class: WebDriverError

# Class: WebDriverError

## WebDriverError(xopt)

WebDriverError is the prototypal parent of all WebDriver errors. It should not be used directly, as it does not correspond to a real error in the specification.

## Constructor

#### new WebDriverError(xopt)

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`x` | string | Error | <optional> | Optional string describing error situation or Error instance to propagate.

Source:
  - error.js, line 232

### Methods

#### (static) fromJSON(json) → {Error}

Unmarshals a JSON error representation to the appropriate Marionette error type.

##### Parameters:

Name | Type | Description
--- | --- | ---
`json` | Object.<string, string> | Error object.

Source:
  - error.js, line 271

##### Returns:

Error prototype.

Type
  Error

#### toJSON() → {Object.<string, string>}

Source:
  - error.js, line 253

##### Returns:

JSON serialisation of error prototype.

Type
  Object.<string, string>