public final class WebErrorEvent extends Event
WebEngine
エラーを示すイベント。エラーに関連付けられたオプションのテキスト・メッセージとオプションの例外を保持します。WebEngine.onError
、「直列化された形式」修飾子と型 | フィールドと説明 |
---|---|
static EventType<WebErrorEvent> |
ANY
すべての
WebErrorEvent 型に共通のスーパータイプ。 |
static EventType<WebErrorEvent> |
USER_DATA_DIRECTORY_ALREADY_IN_USE
このイベントは、
WebEngine のユーザー・データ・ディレクトリが別のVM上のWebEngine によってすでに使用されていることが判明したときに発生します。 |
static EventType<WebErrorEvent> |
USER_DATA_DIRECTORY_IO_ERROR
このイベントは、
WebEngine でのユーザー・データ・ディレクトリの作成または利用試行においてI/Oエラーが生じたときに発生します。 |
static EventType<WebErrorEvent> |
USER_DATA_DIRECTORY_SECURITY_ERROR
このイベントは、
WebEngine でのユーザー・データ・ディレクトリの作成または利用試行においてセキュリティ・エラーが生じたときに発生します。 |
consumed、eventType、NULL_SOURCE_TARGET、target
source
コンストラクタと説明 |
---|
WebErrorEvent(Object source, EventType<WebErrorEvent> type, String message, Throwable exception)
新しい
WebErrorEvent を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
Throwable |
getException()
このイベントに関連付けられた例外を返します。
|
String |
getMessage()
このイベントに関連付けられたテキスト・メッセージを返します。
|
String |
toString() |
clone、consume、copyFor、fireEvent、getEventType、getTarget、isConsumed
getSource
public static final EventType<WebErrorEvent> ANY
WebErrorEvent
型に共通のスーパータイプ。public static final EventType<WebErrorEvent> USER_DATA_DIRECTORY_ALREADY_IN_USE
WebEngine
のユーザー・データ・ディレクトリが別のVM上のWebEngine
によってすでに使用されていることが判明したときに発生します。
一般的に、複数のWebEngine
インスタンスが同じVMで実行されるかぎり、それらは1つのユーザー・データ・ディレクトリを共有できます。異なるVMで実行されるWebEngine
インスタンスは、同じユーザー・データ・ディレクトリを共有できません。
WebEngine
では、最初のWebページのロードまたはスクリプトの実行を開始しようとするとき、そのuserDataDirectory
が異なるVMで実行されているWebEngine
ですでに使用されているかどうかをチェックします。後者の場合は、WebEngine
によって、USER_DATA_DIRECTORY_ALREADY_IN_USE
イベントとともに(ある場合)、WebEngine.onError
イベント・ハンドラが起動されます。起動されたイベント・ハンドラによってuserDataDirectory
プロパティが変更される場合は、ハンドラが戻るとすぐに、WebEngine
は新しいユーザー・データ・ディレクトリで再試行します。ハンドラによってuserDataDirectory
プロパティが変更されない(デフォルトである)場合は、WebEngine
はユーザー・データ・ディレクトリなしで続行します。
public static final EventType<WebErrorEvent> USER_DATA_DIRECTORY_IO_ERROR
WebEngine
でのユーザー・データ・ディレクトリの作成または利用試行においてI/Oエラーが生じたときに発生します。
WebEngine
では、最初のWebページのロードまたはスクリプトの実行を開始しようとするとき、そのuserDataDirectory
の作成またはアクセスを実行できるかどうかをチェックします。I/Oエラー(java.io.IOException
など)でチェックが失敗した場合は、WebEngine
によって、USER_DATA_DIRECTORY_IO_ERROR
イベントとともに(ある場合)、WebEngine.onError
イベント・ハンドラが起動されます。起動されたイベント・ハンドラによってuserDataDirectory
プロパティが変更される場合は、ハンドラが戻るとすぐに、WebEngine
は新しいユーザー・データ・ディレクトリで再試行します。ハンドラによってuserDataDirectory
プロパティが変更されない(デフォルトである)場合は、WebEngine
はユーザー・データ・ディレクトリなしで続行します。
public static final EventType<WebErrorEvent> USER_DATA_DIRECTORY_SECURITY_ERROR
WebEngine
でのユーザー・データ・ディレクトリの作成または利用試行においてセキュリティ・エラーが生じたときに発生します。
WebEngine
では、最初のWebページのロードまたはスクリプトの実行を開始しようとするとき、そのuserDataDirectory
の作成またはアクセスを実行できるかどうかをチェックします。セキュリティ・エラー(java.lang.SecurityException
など)でチェックが失敗した場合は、WebEngine
によって、USER_DATA_DIRECTORY_SECURITY_ERROR
イベントとともに(ある場合)、WebEngine.onError
イベント・ハンドラが起動されます。起動されたイベント・ハンドラによってuserDataDirectory
プロパティが変更される場合は、ハンドラが戻るとすぐに、WebEngine
は新しいユーザー・データ・ディレクトリで再試行します。ハンドラによってuserDataDirectory
プロパティが変更されない(デフォルトである)場合は、WebEngine
はユーザー・データ・ディレクトリなしで続行します。
public WebErrorEvent(Object source, EventType<WebErrorEvent> type, String message, Throwable exception)
WebErrorEvent
を作成します。source
- イベントを送信したイベント・ソースeventType
- イベント・タイプmessage
- イベントに関連付けられたテキスト・メッセージで、null
になる場合があります。exception
- イベントに関連付けられた例外で、null
になる場合があります。public String getMessage()
null
public Throwable getException()
null
public String toString()
toString
、クラス: EventObject
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.