1. /*
  2. * @(#)TooManyListenersException.java 1.13 03/12/19
  3. *
  4. * Copyright 2004 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.13 03/12/19
  27. * @author Laurence P. G. Cable
  28. * @since JDK1.1
  29. */
  30. public class TooManyListenersException extends Exception {
  31. /**
  32. * Constructs a TooManyListenersException with no detail message.
  33. * A detail message is a String that describes this particular exception.
  34. */
  35. public TooManyListenersException() {
  36. super();
  37. }
  38. /**
  39. * Constructs a TooManyListenersException with the specified detail message.
  40. * A detail message is a String that describes this particular exception.
  41. * @param s the detail message
  42. */
  43. public TooManyListenersException(String s) {
  44. super(s);
  45. }
  46. }