node/doc/api
Michael Dawson e912c67d24 dgram: convert to using internal/errors
Covert lib/dgram.js over to using lib/internal/errors.js
for generating Errors. See
[using-internal-errors.md](https://github.com/nodejs/node/blob/master/doc/guides/using-internal-errors.md)
for more details.

I have not addressed the cases that use errnoException() and
exceptionWithHostPort() helper methods as changing these would require
fixing the tests across all of the different files that use them. In
addition, these helpers already add a `code` to the Error and we'll
have to discuss how that interacts with the `code` used by
lib/internal/errors.js.  I believe we should convert all users
of errnoException and exceptionWithHostPort in a PR dedicated to
that conversion.

PR-URL: https://github.com/nodejs/node/pull/12926
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben.bridgewater@fintura.de>
2017-05-24 10:16:46 -04:00
..
_toc.md inspector: JavaScript bindings for the inspector 2017-05-23 19:45:48 +02:00
addons.md addons: remove semicolons from after module definition 2017-05-15 20:33:06 +02:00
all.md inspector: JavaScript bindings for the inspector 2017-05-23 19:45:48 +02:00
assert.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
buffer.md buffer: fix indexOf for empty searches 2017-05-18 23:16:40 +02:00
child_process.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
cli.md cmd: support dash as stdin alias 2017-05-23 20:41:13 +02:00
cluster.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
console.md doc: replace uses of you and other style nits 2017-04-28 07:57:11 -07:00
crypto.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
debugger.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
deprecations.md fs: Revert throw on invalid callbacks 2017-05-20 10:21:34 -04:00
dgram.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
dns.md dns: support promisified lookup(Service) 2017-05-09 15:01:46 +02:00
documentation.md doc: replace uses of you and other style nits 2017-04-28 07:57:11 -07:00
domain.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
errors.md dgram: convert to using internal/errors 2017-05-24 10:16:46 -04:00
events.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
fs.md doc: list macOS as supporting filename argument 2017-05-22 15:55:08 -04:00
globals.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
http.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
https.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md inspector: JavaScript bindings for the inspector 2017-05-23 19:45:48 +02:00
modules.md doc: replace uses of you and other style nits 2017-04-28 07:57:11 -07:00
n-api.md doc: fix title/function name mismatch 2017-05-23 21:04:11 +02:00
net.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
os.md doc: add eslint-plugin-markdown 2017-04-25 00:06:17 +03:00
path.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
process.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
punycode.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
querystring.md doc, test: add note to response.getHeaders 2017-05-10 11:07:15 -04:00
readline.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
repl.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
stream.md doc: don't use useless constructors in stream.md 2017-05-24 03:53:06 +03:00
string_decoder.md doc: document pending semver-major API changes 2017-02-24 02:06:31 +01:00
synopsis.md cmd: support dash as stdin alias 2017-05-23 20:41:13 +02:00
timers.md timers: add promisify support 2017-05-09 15:01:44 +02:00
tls.md tls: accept lookup option for tls.connect() 2017-05-15 17:25:44 -04:00
tracing.md src: Node Tracing Controller 2016-12-20 12:31:09 -08:00
tty.md doc: add some info on tty#setRawMode() 2016-12-08 13:39:45 -05:00
url.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
util.md util: add util.promisify() 2017-05-09 15:01:41 +02:00
v8.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
vm.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
zlib.md zlib: fix node crashing on invalid options 2017-05-22 01:10:44 +03:00