Skip to content

Commit d4ea9c3

Browse files
committed
quic: start adding in the internal quic js api
While the external API for QUIC is expected to be the WebTransport API primarily, this provides the internal API for QUIC that aligns with the native C++ QUIC components.
1 parent 3ab0499 commit d4ea9c3

File tree

8 files changed

+2805
-71
lines changed

8 files changed

+2805
-71
lines changed

doc/api/errors.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3571,6 +3571,42 @@ removed: v10.0.0
35713571

35723572
The `node:repl` module was unable to parse data from the REPL history file.
35733573

3574+
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
3575+
3576+
### `ERR_QUIC_CONNECTION_FAILED`
3577+
3578+
<!-- YAML
3579+
added: REPLACEME
3580+
-->
3581+
3582+
> Stability: 1 - Experimental
3583+
3584+
Establishing a QUIC connection failed.
3585+
3586+
<a id="ERR_QUIC_ENDPOINT_CLOSED"></a>
3587+
3588+
### `ERR_QUIC_ENDPOINT_CLOSED`
3589+
3590+
<!-- YAML
3591+
added: REPLACEME
3592+
-->
3593+
3594+
> Stability: 1 - Experimental
3595+
3596+
A QUIC Endpoint closed with an error.
3597+
3598+
<a id="ERR_QUIC_OPEN_STREAM_FAILED"></a>
3599+
3600+
### `ERR_QUIC_OPEN_STREAM_FAILED`
3601+
3602+
<!-- YAML
3603+
added: REPLACEME
3604+
-->
3605+
3606+
> Stability: 1 - Experimental
3607+
3608+
Opening a QUIC stream failed.
3609+
35743610
<a id="ERR_SOCKET_CANNOT_SEND"></a>
35753611

35763612
### `ERR_SOCKET_CANNOT_SEND`

lib/internal/errors.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,9 @@ E('ERR_PARSE_ARGS_UNKNOWN_OPTION', (option, allowPositionals) => {
16451645
E('ERR_PERFORMANCE_INVALID_TIMESTAMP',
16461646
'%d is not a valid timestamp', TypeError);
16471647
E('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS', '%s', TypeError);
1648+
E('ERR_QUIC_CONNECTION_FAILED', 'QUIC connection failed', Error);
1649+
E('ERR_QUIC_ENDPOINT_CLOSED', 'QUIC endpoint closed: %s (%d)', Error);
1650+
E('ERR_QUIC_OPEN_STREAM_FAILED', 'Failed to open QUIC stream', Error);
16481651
E('ERR_REQUIRE_CYCLE_MODULE', '%s', Error);
16491652
E('ERR_REQUIRE_ESM',
16501653
function(filename, hasEsmSyntax, parentPath = null, packageJsonPath = null) {

0 commit comments

Comments
 (0)