public class NamingExceptionEvent extends EventObject
NamingListener.namingExceptionThrown(javax.naming.event.NamingExceptionEvent), EventContext, 直列化された形式source| コンストラクタ | 説明 |
|---|---|
NamingExceptionEvent(EventContext source, NamingException exc) |
NamingExceptionがスローされたコンテキストとスローされた例外を使用して、NamingExceptionEventのインスタンスを構築します。
|
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
void |
dispatch(NamingListener listener) |
このイベントを使用して、リスナーでnamingExceptionThrown()メソッドを呼び出します。
|
EventContext |
getEventContext() |
このイベントをトリガーしたEventContextを取得します。
|
NamingException |
getException() |
スローされた例外を取得します。
|
getSource, toStringpublic NamingExceptionEvent(EventContext source, NamingException exc)
source - 例外がスローされたnull以外のコンテキスト。exc - スローされたnull以外のNamingException。public NamingException getException()
public EventContext getEventContext()
public void dispatch(NamingListener listener)
listener - メソッドを呼び出すリスナーのnull以外のネーミング・リスナー。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。