Skip to content

Commit d09e57b

Browse files
jasnelltargos
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 b778a4f commit d09e57b

7 files changed

+1088
-489
lines changed

doc/api/errors.md

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

2437+
<a id="ERR_QUIC_APPLICATION_ERROR"></a>
2438+
2439+
### `ERR_QUIC_APPLICATION_ERROR`
2440+
2441+
<!-- YAML
2442+
added: REPLACEME
2443+
-->
2444+
2445+
> Stability: 1 - Experimental
2446+
2447+
A QUIC application error occurred.
2448+
24372449
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
24382450

24392451
### `ERR_QUIC_CONNECTION_FAILED`
@@ -2470,6 +2482,30 @@ added: v23.0.0
24702482
24712483
Opening a QUIC stream failed.
24722484

2485+
<a id="ERR_QUIC_TRANSPORT_ERROR"></a>
2486+
2487+
### `ERR_QUIC_TRANSPORT_ERROR`
2488+
2489+
<!-- YAML
2490+
added: REPLACEME
2491+
-->
2492+
2493+
> Stability: 1 - Experimental
2494+
2495+
A QUIC transport error occurred.
2496+
2497+
<a id="ERR_QUIC_VERSION_NEGOTIATION_ERROR"></a>
2498+
2499+
### `ERR_QUIC_VERSION_NEGOTIATION_ERROR`
2500+
2501+
<!-- YAML
2502+
added: REPLACEME
2503+
-->
2504+
2505+
> Stability: 1 - Experimental
2506+
2507+
A QUIC session failed because version negotiation is required.
2508+
24732509
<a id="ERR_REQUIRE_ASYNC_MODULE"></a>
24742510

24752511
### `ERR_REQUIRE_ASYNC_MODULE`

lib/internal/errors.js

+3
Original file line numberDiff line numberDiff line change
@@ -1647,9 +1647,12 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
16471647
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
16481648
'%d is not a valid timestamp', TypeError);
16491649
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);
1650+
E('ERR_QUIC_APPLICATION_ERROR', 'A QUIC application error occurred. %d [%s]', Error);
16501651
E('ERR_QUIC_CONNECTION_FAILED', 'QUIC connection failed', Error);
16511652
E('ERR_QUIC_ENDPOINT_CLOSED', 'QUIC endpoint closed: %s (%d)', Error);
16521653
E('ERR_QUIC_OPEN_STREAM_FAILED', 'Failed to open QUIC stream', Error);
1654+
E('ERR_QUIC_TRANSPORT_ERROR', 'A QUIC transport error occurred. %d [%s]', Error);
1655+
E('ERR_QUIC_VERSION_NEGOTIATION_ERROR', 'The QUIC session requires version negotiation', Error);
16531656
E('ERR_REQUIRE_ASYNC_MODULE', 'require() cannot be used on an ESM ' +
16541657
'graph with top-level await. Use import() instead. To see where the' +
16551658
' top-level await comes from, use --experimental-print-required-tla.', Error);

0 commit comments

Comments
 (0)