Browse files

[doc] Updated with docs for `.merged()`

  • Loading branch information...
1 parent e725d8e commit 0e8592991a29b5bf55baa44b2e02ca0f167c243c @indexzero committed Mar 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0
@@ -155,6 +155,7 @@ The `errs` modules exposes some simple utility methods:
* `.register(type, proto)`: Registers the specified `proto` to `type` for future calls to `errors.create(type, opts)`.
* `.unregister(type)`: Unregisters the specified `type` for future calls to `errors.create(type, opts)`.
* `.handle(err, callback)`: Attempts to instantiate the given `error`. If the `error` is already a properly formed `error` object (with a `stack` property) it will not be modified.
+* `.merge(err, type, opts)`: Merges an existing error with a new error instance for with the specified `type` and `opts`.
## Installation

0 comments on commit 0e85929

Please sign in to comment.