Constructor
new WebDriverError(xopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x |
string | Error |
<optional> |
Optional string describing error situation or Error instance to propagate. |
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. |
Returns:
Error prototype.
- Type
- Error
toJSON() → {Object.<string, string>}
Returns:
JSON serialisation of error prototype.
- Type
- Object.<string, string>