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