FileDocCategorySizeDatePackage
NamingExceptionEvent.javaAPI DocJava SE 5 API2293Fri Aug 26 14:57:40 BST 2005javax.naming.event

NamingExceptionEvent

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 addNamingListener() call.
author
Rosanna Lee
author
Scott Seligman
version
1.7 03/12/19
see
NamingListener#namingExceptionThrown
see
EventContext
since
1.3

Fields Summary
private NamingException
exception
Contains 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.

param
source The non-null context in which the exception was thrown.
param
exc The non-null NamingException that was thrown.

	super(source);
	exception = exc;
    
Methods Summary
public voiddispatch(javax.naming.event.NamingListener listener)
Invokes the namingExceptionThrown() method on a listener using this event.

param
listener The non-null naming listener on which to invoke the method.

	listener.namingExceptionThrown(this);
    
public javax.naming.event.EventContextgetEventContext()
Retrieves the EventContext that fired this event. This returns the same object as EventObject.getSource().

return
The non-null EventContext that fired this event.

	return (EventContext)getSource();
    
public javax.naming.NamingExceptiongetException()
Retrieves the exception that was thrown.

return
The exception that was thrown.

	return exception;