Skip to content

Commit

Permalink
[js] Rewrite the error module to export specific types for each error…
Browse files Browse the repository at this point in the history
… code

Only the error codes used by the W3C spec are supported on the class
definitions (and we still provide a means to translate number to error
type)
  • Loading branch information
jleyba committed Nov 18, 2015
1 parent f862c22 commit c3eccba
Show file tree
Hide file tree
Showing 5 changed files with 650 additions and 7 deletions.
5 changes: 5 additions & 0 deletions javascript/node/selenium-webdriver/CHANGES.md
Expand Up @@ -4,6 +4,11 @@
`promise.Promise#thenCatch()` is not yet deprecated, but it simply
delegates to `catch`.
* Changed some `io` operations to use native promises.
* Rewrote the `error` module to export an Error subtype for each type of error
defined in the [W3C WebDriver spec](https://w3c.github.io/webdriver/webdriver-spec.html#handling-errors).
For the export types, the `code` property is now the string code used by
the W3C spec and _not_ the numeric code used by the Selenium project's
wire protocol.

## v2.48.2

Expand Down

0 comments on commit c3eccba

Please sign in to comment.