@@ -32,6 +32,7 @@ Universal API for creating [Node.js errors][1]
3232 - [ ` ERR_INVALID_MODULE_SPECIFIER(request[, reason][, base]) ` ] ( #err_invalid_module_specifierrequest-reason-base )
3333 - [ ` ERR_INVALID_PACKAGE_CONFIG(id[, base][, reason]) ` ] ( #err_invalid_package_configid-base-reason )
3434 - [ ` ERR_INVALID_PACKAGE_TARGET(dir, key, target[, internal][, base]) ` ] ( #err_invalid_package_targetdir-key-target-internal-base )
35+ - [ ` ERR_INVALID_URL(input) ` ] ( #err_invalid_urlinput )
3536 - [ ` ERR_METHOD_NOT_IMPLEMENTED(method) ` ] ( #err_method_not_implementedmethod )
3637 - [ ` ERR_MISSING_OPTION(option) ` ] ( #err_missing_optionoption )
3738 - [ ` ERR_MODULE_NOT_FOUND(id, base[, type]) ` ] ( #err_module_not_foundid-base-type )
@@ -216,6 +217,7 @@ This package exports the following identifiers:
216217- [ ` ERR_INVALID_MODULE_SPECIFIER ` ] ( #err_invalid_module_specifierrequest-reason-base )
217218- [ ` ERR_INVALID_PACKAGE_CONFIG ` ] ( #err_invalid_package_configid-base-reason )
218219- [ ` ERR_INVALID_PACKAGE_TARGET ` ] ( #err_invalid_package_targetdir-key-target-internal-base )
220+ - [ ` ERR_INVALID_URL ` ] ( #err_invalid_urlinput )
219221- [ ` ERR_METHOD_NOT_IMPLEMENTED ` ] ( #err_method_not_implementedmethod )
220222- [ ` ERR_MISSING_OPTION ` ] ( #err_missing_optionoption )
221223- [ ` ERR_MODULE_NOT_FOUND ` ] ( #err_module_not_foundid-base-type )
@@ -248,6 +250,7 @@ import {
248250 ERR_INVALID_MODULE_SPECIFIER ,
249251 ERR_INVALID_PACKAGE_CONFIG ,
250252 ERR_INVALID_PACKAGE_TARGET ,
253+ ERR_INVALID_URL ,
251254 ERR_MODULE_NOT_FOUND ,
252255 ERR_NETWORK_IMPORT_DISALLOWED ,
253256 ERR_PACKAGE_IMPORT_NOT_DEFINED ,
@@ -402,6 +405,15 @@ the attempted module resolution.
402405
403406> ** Source** : [ ` src/models/err-invalid-package-target.ts ` ] ( src/models/err-invalid-package-target.ts )
404407
408+ #### ` ERR_INVALID_URL(input) `
409+
410+ Thrown when an invalid URL is passed to a [ WHATWG] [ 11 ] [ ` URL ` constructor] [ 12 ] or [ ` url.parse() ` ] [ 13 ] to be parsed.
411+
412+ - ` {string} ` ** ` input ` ** &mdash ; URL that failed to parse
413+ - ** Returns** : ` {ErrInvalidUrl} `
414+
415+ > ** Source** : [ ` src/models/err-invalid-url.ts ` ] ( src/models/err-invalid-url.ts )
416+
405417#### ` ERR_METHOD_NOT_IMPLEMENTED(method) `
406418
407419Thrown when a method is required but not implemented.
@@ -541,7 +553,7 @@ Thrown when an unsupported URL scheme is used in an `import` statement. URL sche
541553Creates a Node.js error constructor.
542554
543555If the given error ` message ` is a function, constructor arguments are passed to ` message ` . If the ` message ` is a string,
544- constructor arguments are passed to [ ` util.format ` ] [ 11 ] instead.
556+ constructor arguments are passed to [ ` util.format ` ] [ 14 ] instead.
545557
546558- ` {ErrorCode} ` ** ` code ` ** &mdash ; Node.js error code
547559- ` {B extends ErrorConstructor} ` ** ` Base ` ** &mdash ; Error base class
@@ -561,7 +573,7 @@ Determines the specific type of a value for type-mismatch errors.
561573
562574## Types
563575
564- This package is fully typed with [ TypeScript] [ 12 ] . It exports the following definitions:
576+ This package is fully typed with [ TypeScript] [ 15 ] . It exports the following definitions:
565577
566578### Enums
567579
@@ -593,5 +605,8 @@ See [`CONTRIBUTING.md`](CONTRIBUTING.md).
593605[ 8 ] : https://nodejs.org/api/packages.html#nodejs-packagejson-field-definitions
594606[ 9 ] : https://nodejs.org/api/packages.html#exports
595607[ 10 ] : https://nodejs.org/api/packages.html#imports
596- [ 11 ] : https://nodejs.org/api/util.html#utilformatformat-args
597- [ 12 ] : https://www.typescriptlang.org
608+ [ 11 ] : https://nodejs.org/api/url.html#the-whatwg-url-api
609+ [ 12 ] : https://nodejs.org/api/url.html#new-urlinput-base
610+ [ 13 ] : https://nodejs.org/api/url.html#urlparseurlstring-parsequerystring-slashesdenotehost
611+ [ 14 ] : https://nodejs.org/api/util.html#utilformatformat-args
612+ [ 15 ] : https://www.typescriptlang.org
0 commit comments