| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 07845fc commit f4f0266
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -536,10 +536,14 @@ E('ERR_HTTP2_GOAWAY_SESSION', | |||
| 536 | 536 | E('ERR_HTTP2_HEADERS_AFTER_RESPOND', | |
| 537 | 537 | 'Cannot specify additional headers after response initiated', Error); | |
| 538 | 538 | E('ERR_HTTP2_HEADERS_SENT', 'Response has already been initiated.', Error); | |
| 539 | + | ||
| 540 | + // This should probably be a `TypeError`. | ||
| 539 | 541 | E('ERR_HTTP2_HEADER_SINGLE_VALUE', | |
| 540 | 542 | 'Header field "%s" must have only a single value', Error); | |
| 541 | 543 | E('ERR_HTTP2_INFO_STATUS_NOT_ALLOWED', | |
| 542 | 544 | 'Informational status codes cannot be used', RangeError); | |
| 545 | + | ||
| 546 | + // This should probably be a `TypeError`. | ||
| 543 | 547 | E('ERR_HTTP2_INVALID_CONNECTION_HEADERS', | |
| 544 | 548 | 'HTTP/1 Connection specific headers are forbidden: "%s"', Error); | |
| 545 | 549 | E('ERR_HTTP2_INVALID_HEADER_VALUE', | |
@@ -548,6 +552,8 @@ E('ERR_HTTP2_INVALID_INFO_STATUS', | |||
| 548 | 552 | 'Invalid informational status code: %s', RangeError); | |
| 549 | 553 | E('ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH', | |
| 550 | 554 | 'Packed settings length must be a multiple of six', RangeError); | |
| 555 | + | ||
| 556 | + // This should probably be a `TypeError`. | ||
| 551 | 557 | E('ERR_HTTP2_INVALID_PSEUDOHEADER', | |
| 552 | 558 | '"%s" is an invalid pseudoheader or is used incorrectly', Error); | |
| 553 | 559 | E('ERR_HTTP2_INVALID_SESSION', 'The session has been destroyed', Error); | |
@@ -566,6 +572,8 @@ E('ERR_HTTP2_PAYLOAD_FORBIDDEN', | |||
| 566 | 572 | 'Responses with %s status must not have a payload', Error); | |
| 567 | 573 | E('ERR_HTTP2_PING_CANCEL', 'HTTP2 ping cancelled', Error); | |
| 568 | 574 | E('ERR_HTTP2_PING_LENGTH', 'HTTP2 ping payload must be 8 bytes', RangeError); | |
| 575 | + | ||
| 576 | + // This should probably be a `TypeError`. | ||
| 569 | 577 | E('ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED', | |
| 570 | 578 | 'Cannot set HTTP/2 pseudo-headers', Error); | |
| 571 | 579 | E('ERR_HTTP2_PUSH_DISABLED', 'HTTP/2 client has disabled push streams', Error); | |
@@ -611,8 +619,12 @@ E('ERR_INVALID_BUFFER_SIZE', | |||
| 611 | 619 | 'Buffer size must be a multiple of %s', RangeError); | |
| 612 | 620 | E('ERR_INVALID_CALLBACK', 'Callback must be a function', TypeError); | |
| 613 | 621 | E('ERR_INVALID_CHAR', invalidChar, TypeError); //Check falsy "Error" entries. | |
| 622 | + | ||
| 623 | + // This should probably be a `TypeError`. | ||
| 614 | 624 | E('ERR_INVALID_CURSOR_POS', | |
| 615 | 625 | 'Cannot set cursor row without setting its column', Error); | |
| 626 | + | ||
| 627 | + // This should probably be a `TypeError`. | ||
| 616 | 628 | E('ERR_INVALID_DOMAIN_NAME', 'Unable to determine the domain name', Error); | |
| 617 | 629 | E('ERR_INVALID_FD', | |
| 618 | 630 | '"fd" must be a positive integer: %s', RangeError); | |
@@ -622,6 +634,7 @@ E('ERR_INVALID_FILE_URL_HOST', | |||
| 622 | 634 | E('ERR_INVALID_FILE_URL_PATH', 'File URL path %s', TypeError); | |
| 623 | 635 | E('ERR_INVALID_HANDLE_TYPE', 'This handle type cannot be sent', TypeError); | |
| 624 | 636 | E('ERR_INVALID_HTTP_TOKEN', '%s must be a valid HTTP token ["%s"]', TypeError); | |
| 637 | + // The `Error` should probably be a `TypeError`. | ||
| 625 | 638 | E('ERR_INVALID_IP_ADDRESS', 'Invalid IP address: %s', TypeError, Error); | |
| 626 | 639 | E('ERR_INVALID_OPT_VALUE', (name, value) => | |
| 627 | 640 | `The value "${String(value)}" is invalid for option "${name}"`, | |
@@ -631,7 +644,11 @@ E('ERR_INVALID_OPT_VALUE_ENCODING', | |||
| 631 | 644 | 'The value "%s" is invalid for option "encoding"', TypeError); | |
| 632 | 645 | E('ERR_INVALID_PERFORMANCE_MARK', | |
| 633 | 646 | 'The "%s" performance mark has not been set', Error); | |
| 647 | + | ||
| 648 | + // This should probably be a `TypeError`. | ||
| 634 | 649 | E('ERR_INVALID_PROTOCOL', 'Protocol "%s" not supported. Expected "%s"', Error); | |
| 650 | + | ||
| 651 | + // This should probably be a `TypeError`. | ||
| 635 | 652 | E('ERR_INVALID_REPL_EVAL_CONFIG', | |
| 636 | 653 | 'Cannot specify both "breakEvalOnSigint" and "eval" for REPL', Error); | |
| 637 | 654 | E('ERR_INVALID_SYNC_FORK_INPUT', | |
@@ -703,6 +720,8 @@ E('ERR_TLS_REQUIRED_SERVER_NAME', | |||
| 703 | 720 | E('ERR_TLS_SESSION_ATTACK', 'TLS session renegotiation attack detected', Error); | |
| 704 | 721 | E('ERR_TRANSFORM_ALREADY_TRANSFORMING', | |
| 705 | 722 | 'Calling transform done when still transforming', Error); | |
| 723 | + | ||
| 724 | + // This should probably be a `RangeError`. | ||
| 706 | 725 | E('ERR_TRANSFORM_WITH_LENGTH_0', | |
| 707 | 726 | 'Calling transform done when writableState.length != 0', Error); | |
| 708 | 727 | E('ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET', | |
@@ -717,14 +736,20 @@ E('ERR_UNHANDLED_ERROR', | |||
| 717 | 736 | return `${msg} (${err})`; | |
| 718 | 737 | }, Error); | |
| 719 | 738 | E('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError); | |
| 739 | + | ||
| 740 | + // This should probably be a `TypeError`. | ||
| 720 | 741 | E('ERR_UNKNOWN_FILE_EXTENSION', 'Unknown file extension: %s', Error); | |
| 721 | 742 | E('ERR_UNKNOWN_MODULE_FORMAT', 'Unknown module format: %s', RangeError); | |
| 722 | 743 | E('ERR_UNKNOWN_SIGNAL', 'Unknown signal: %s', TypeError); | |
| 723 | 744 | E('ERR_UNKNOWN_STDIN_TYPE', 'Unknown stdin file type', Error); | |
| 745 | + | ||
| 746 | + // This should probably be a `TypeError`. | ||
| 724 | 747 | E('ERR_UNKNOWN_STREAM_TYPE', 'Unknown stream file type', Error); | |
| 725 | 748 | E('ERR_V8BREAKITERATOR', | |
| 726 | 749 | 'Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl', | |
| 727 | 750 | Error); | |
| 751 | + | ||
| 752 | + // This should probably be a `TypeError`. | ||
| 728 | 753 | E('ERR_VALID_PERFORMANCE_ENTRY_TYPE', | |
| 729 | 754 | 'At least one valid performance entry type is required', Error); | |
| 730 | 755 | E('ERR_VALUE_OUT_OF_RANGE', (start, end, value) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments