source: trunk/src/gcc/libjava/javax/naming/event/NamingExceptionEvent.java@ 1343

Last change on this file since 1343 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 881 bytes
Line 
1/* Copyright (C) 2001 Free Software Foundation
2
3 This file is part of libgcj.
4
5This software is copyrighted work licensed under the terms of the
6Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7details. */
8
9package javax.naming.event;
10import javax.naming.*;
11import java.util.EventObject;
12
13/**
14 * @author Warren Levy <[email protected]>
15 * @date June 5, 2001
16 */
17
18public class NamingExceptionEvent extends EventObject
19{
20 // Serialized fields.
21 private NamingException exception;
22
23 public NamingExceptionEvent(EventContext source, NamingException exc)
24 {
25 super(source);
26 exception = exc;
27 }
28
29 public NamingException getException()
30 {
31 return exception;
32 }
33
34 public EventContext getEventContext()
35 {
36 return (EventContext) getSource();
37 }
38
39 public void dispatch(NamingListener listener)
40 {
41 listener.namingExceptionThrown(this);
42 }
43}
Note: See TracBrowser for help on using the repository browser.