// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/webtransport/#web-transport-error-interface
// https://w3c.github.io/webtransport/#enumdef-webtransporterrorsource
enum WebTransportErrorSource {
"stream",
"session",
};
// https://w3c.github.io/webtransport/#webtransporterror
[
Exposed=(Window,Worker),
SecureContext
] interface WebTransportError : DOMException {
constructor(optional WebTransportErrorInit init = {});
readonly attribute unsigned long? streamErrorCode;
readonly attribute WebTransportErrorSource source;
};