1 7 8 package javax.naming.event; 9 10 import javax.naming.NamingException ; 11 12 27 28 public class NamingExceptionEvent extends java.util.EventObject { 29 33 private NamingException exception; 34 35 44 public NamingExceptionEvent(EventContext source, NamingException exc) { 45 super(source); 46 exception = exc; 47 } 48 49 53 public NamingException getException() { 54 return exception; 55 } 56 57 62 public EventContext getEventContext() { 63 return (EventContext )getSource(); 64 } 65 66 72 public void dispatch(NamingListener listener) { 73 listener.namingExceptionThrown(this); 74 } 75 76 private static final long serialVersionUID = -4877678086134736336L; 77 } 78 | Popular Tags |