ErrorEvent

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

ErrorEvent インターフェイスは、スクリプトまたはファイルのエラーに関連する情報を提供するイベントを表します。

Event ErrorEvent

インスタンスプロパティ

親である Event から継承したプロパティもあります。

ErrorEvent.message 読取専用

文字列で、関数を説明する人間が読むのに適したエラーメッセージが入ります。crossorigin の設定がないと、エラーの記録が縮小されます。

ErrorEvent.filename 読取専用

文字列で、エラーが発生したスクリプトファイルの名前が入ります。

ErrorEvent.lineno 読取専用

エラーが発生したスクリプトファイルの行番号を含む integer です。

ErrorEvent.colno 読取専用

エラーが発生したスクリプトファイルの列番号を含む integer です。

ErrorEvent.error 読取専用

イベントに関係する JavaScript の Object です。

コンストラクター

ErrorEvent()

指定された引数で ErrorEvent イベントを作成します。

インスタンスメソッド

親である Event から継承したメソッドがあります。

仕様書

Specification
HTML
# the-errorevent-interface

ブラウザーの互換性

関連情報