ReadableByteStreamController.error()
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
ReadableByteStreamController
インターフェイスの error()
メソッドにより、関連するストリームとの今後のやり取りがエラーになります。
構文
readableByteStreamController.error(e);
パラメーター
- e
-
今後のやり取りを失敗させるエラー。
戻り値
undefined
。
例外
- TypeError
-
ソースオブジェクトが
ReadableByteStreamController
ではないか、何らかの理由でストリームが読み取り可能ではありません。
例
未定。
仕様
Specification |
---|
Streams Standard # ref-for-rbs-controller-error① |
ブラウザーの互換性
BCD tables only load in the browser