|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.naming.event.NamingExceptionEvent
public class NamingExceptionEvent
此類別表示用來收集通知 NamingEvent 偵聽器的資訊的過程/進程拋出 NamingException 時觸發的事件。例如,當偵聽器使用的伺服器在調用 addNamingListener() 後異常中止時,可能出現該情況。
NamingListener.namingExceptionThrown(javax.naming.event.NamingExceptionEvent),
EventContext,
序列化表格| 欄位摘要 |
|---|
| 從類別 java.util.EventObject 繼承的欄位 |
|---|
source |
| 建構子摘要 | |
|---|---|
NamingExceptionEvent(EventContext source,
NamingException exc)
使用在拋出過 NamingException 的上下文和拋出的異常建構一個 NamingExceptionEvent 的實例。 |
|
| 方法摘要 | |
|---|---|
void |
dispatch(NamingListener listener)
使用此事件對偵聽器調用 namingExceptionThrown() 方法。 |
EventContext |
getEventContext()
檢索觸發此事件的 EventContext。 |
NamingException |
getException()
檢索拋出的異常。 |
| 從類別 java.util.EventObject 繼承的方法 |
|---|
getSource, toString |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public NamingExceptionEvent(EventContext source,
NamingException exc)
source - 拋出過異常的非 null 上下文。exc - 拋出的非 null NamingException。| 方法詳細資訊 |
|---|
public NamingException getException()
public EventContext getEventContext()
public void dispatch(NamingListener listener)
listener - 非 null 命名偵聽器,要對該偵聽器調用方法。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。