Skip to content

Commit c907b2f

Browse files
jasnellruyadorno
authored andcommitted
quic: update more QUIC implementation
Signed-off-by: James M Snell <[email protected]> PR-URL: #55986 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
1 parent c188660 commit c907b2f

7 files changed

+1088
-489
lines changed

doc/api/errors.md

+36
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,18 @@ Accessing `Object.prototype.__proto__` has been forbidden using
24472447
[`Object.setPrototypeOf`][] should be used to get and set the prototype of an
24482448
object.
24492449

2450+
<a id="ERR_QUIC_APPLICATION_ERROR"></a>
2451+
2452+
### `ERR_QUIC_APPLICATION_ERROR`
2453+
2454+
<!-- YAML
2455+
added: REPLACEME
2456+
-->
2457+
2458+
> Stability: 1 - Experimental
2459+
2460+
A QUIC application error occurred.
2461+
24502462
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
24512463

24522464
### `ERR_QUIC_CONNECTION_FAILED`
@@ -2483,6 +2495,30 @@ added: v22.10.0
24832495
24842496
Opening a QUIC stream failed.
24852497

2498+
<a id="ERR_QUIC_TRANSPORT_ERROR"></a>
2499+
2500+
### `ERR_QUIC_TRANSPORT_ERROR`
2501+
2502+
<!-- YAML
2503+
added: REPLACEME
2504+
-->
2505+
2506+
> Stability: 1 - Experimental
2507+
2508+
A QUIC transport error occurred.
2509+
2510+
<a id="ERR_QUIC_VERSION_NEGOTIATION_ERROR"></a>
2511+
2512+
### `ERR_QUIC_VERSION_NEGOTIATION_ERROR`
2513+
2514+
<!-- YAML
2515+
added: REPLACEME
2516+
-->
2517+
2518+
> Stability: 1 - Experimental
2519+
2520+
A QUIC session failed because version negotiation is required.
2521+
24862522
<a id="ERR_REQUIRE_ASYNC_MODULE"></a>
24872523

24882524
### `ERR_REQUIRE_ASYNC_MODULE`

lib/internal/errors.js

+3
Original file line numberDiff line numberDiff line change
@@ -1651,9 +1651,12 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
16511651
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
16521652
'%d is not a valid timestamp', TypeError);
16531653
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);
1654+
E('ERR_QUIC_APPLICATION_ERROR', 'A QUIC application error occurred. %d [%s]', Error);
16541655
E('ERR_QUIC_CONNECTION_FAILED', 'QUIC connection failed', Error);
16551656
E('ERR_QUIC_ENDPOINT_CLOSED', 'QUIC endpoint closed: %s (%d)', Error);
16561657
E('ERR_QUIC_OPEN_STREAM_FAILED', 'Failed to open QUIC stream', Error);
1658+
E('ERR_QUIC_TRANSPORT_ERROR', 'A QUIC transport error occurred. %d [%s]', Error);
1659+
E('ERR_QUIC_VERSION_NEGOTIATION_ERROR', 'The QUIC session requires version negotiation', Error);
16571660
E('ERR_REQUIRE_ASYNC_MODULE', 'require() cannot be used on an ESM ' +
16581661
'graph with top-level await. Use import() instead. To see where the' +
16591662
' top-level await comes from, use --experimental-print-required-tla.', Error);

0 commit comments

Comments
 (0)