1. /*
  2. * @(#)TooManyListenersException.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.util;
  8. /**
  9. * <p>
  10. * The <code> TooManyListenersException </code> Exception is used as part of
  11. * the Java Event model to annotate and implement a unicast special case of
  12. * a multicast Event Source.
  13. * </p>
  14. * <p>
  15. * The presence of a "throws TooManyListenersException" clause on any given
  16. * concrete implementation of the normally multicast "void addXyzEventListener"
  17. * event listener registration pattern is used to annotate that interface as
  18. * implementing a unicast Listener special case, that is, that one and only
  19. * one Listener may be registered on the particular event listener source
  20. * concurrently.
  21. * </p>
  22. *
  23. * @see java.util.EventObject
  24. * @see java.util.EventListener
  25. *
  26. * @version 1.8 01/11/29
  27. * @author Laurence P. G. Cable
  28. */
  29. public class TooManyListenersException extends Exception {
  30. /**
  31. * Constructs a TooManyListenersException with no detail message.
  32. * A detail message is a String that describes this particular exception.
  33. */
  34. public TooManyListenersException() {
  35. super();
  36. }
  37. /**
  38. * Constructs a TooManyListenersException with the specified detail message.
  39. * A detail message is a String that describes this particular exception.
  40. * @param s the detail message
  41. */
  42. public TooManyListenersException(String s) {
  43. super(s);
  44. }
  45. }