- All Implemented Interfaces:
public class NamingExceptionEvent extends EventObject
This class represents an event fired when the procedures/processes used to collect information for notifying listeners of
NamingEvents threw a
NamingException. This can happen, for example, if the server which the listener is using aborts subsequent to the
NamingExceptionEventConstructs an instance of
NamingExceptionEventusing the context in which the
NamingExceptionwas thrown and the exception that was thrown.
source- The non-null context in which the exception was thrown.
exc- The non-null
NamingExceptionthat was thrown.
getExceptionpublic NamingException getException()Retrieves the exception that was thrown.
- The exception that was thrown.
getEventContextpublic EventContext getEventContext()Retrieves the
EventContextthat fired this event. This returns the same object as
- The non-null
EventContextthat fired this event.
dispatchpublic void dispatch(NamingListener listener)Invokes the
namingExceptionThrown()method on a listener using this event.
listener- The non-null naming listener on which to invoke the method.