Java in a Nutshell

Previous Chapter 30
The java.util Package
Next
 

30.25 java.util.TooManyListenersException (JDK 1.1)

An exception of this type signals that an AWT component or Java bean may only have one EventListener object registered for some specific type of event. That is, it signals that a particular event is a "unicast" event rather than a "multicast" event.

This exception type serves a formal purpose in the AWT and JavaBeans event model. Its presence in the throws clause of an EventListener registration method (even if the method never actually throws the exception) signals that an event is a unicast event.

public class TooManyListenersException extends Exception {
    // Public Constructors
            public TooManyListenersException();
            public TooManyListenersException(String s);
}

Hierarchy:

Object->Throwable(Serializable)->Exception->TooManyListenersException


Previous Home Next
java.util.TimeZone (JDK 1.1) Book Index java.util.Vector (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.