NamingExceptionEventpublic 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 addNamingListener() call. |
Fields Summary |
---|
private NamingException | exceptionContains the exception that was thrown | private static final long | serialVersionUID |
Constructors Summary |
---|
public NamingExceptionEvent(EventContext source, NamingException exc)Constructs an instance of NamingExceptionEvent using
the context in which the NamingException was thrown and the exception
that was thrown.
super(source);
exception = exc;
|
Methods Summary |
---|
public void | dispatch(javax.naming.event.NamingListener listener)Invokes the namingExceptionThrown() method on
a listener using this event.
listener.namingExceptionThrown(this);
| public javax.naming.event.EventContext | getEventContext()Retrieves the EventContext that fired this event.
This returns the same object as EventObject.getSource().
return (EventContext)getSource();
| public javax.naming.NamingException | getException()Retrieves the exception that was thrown.
return exception;
|
|