home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / TooManyListenersException.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  66 lines

  1. /*
  2.  * @(#)TooManyListenersException.java    1.1 96/10/10
  3.  *
  4.  * Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software
  7.  * and its documentation for NON-COMMERCIAL purposes and without
  8.  * fee is hereby granted provided that this copyright notice
  9.  * appears in all copies. Please refer to the file "copyright.html"
  10.  * for further important copyright and licensing information.
  11.  *
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  13.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  16.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  17.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  18.  */
  19.  
  20. package java.util;
  21.  
  22. /**
  23.  * <p>
  24.  * The <code> TooManyListenersException </code> Exception is used as part of
  25.  * the Java Event model to annotate and implement a unicast special case of
  26.  * a multicast Event Source.
  27.  * </p>
  28.  * <p>
  29.  * The presence of a <code> throws TooManyListenersException </code> clause
  30.  * on any given concrete implementation of the normally multicast semantic
  31.  * <italic> void add < EventListenerType > () </italic> event listener
  32.  * registration pattern is used to annotate that interface as implementing
  33.  * a unicast Listener special case, that is, that one and only one Listener
  34.  * may be registered on the particular event listener source concurrently.
  35.  * </p>
  36.  *
  37.  * @see java.util.EventObject
  38.  * @see java.util.EventListener
  39.  * 
  40.  * @version 1.1 96/10/10
  41.  * @author Laurence P. G. Cable
  42.  */
  43.  
  44. public class TooManyListenersException extends Exception {
  45.  
  46.     /**
  47.      * Constructs a TooManyListenersException with no detail message.
  48.      * A detail message is a String that describes this particular exception.
  49.      */
  50.  
  51.     public TooManyListenersException() {
  52.     super();
  53.     }
  54.  
  55.     /**
  56.      * Constructs a TooManyListenersException with the specified detail message.
  57.      * A detail message is a String that describes this particular exception.
  58.      * @param s the detail message
  59.      */
  60.  
  61.     public TooManyListenersException(String s) {
  62.     super(s);
  63.     }
  64. }
  65.  
  66.