Package java.util

Class TooManyListenersException

  • All Implemented Interfaces:
    Serializable

    public class TooManyListenersException
    extends Exception
    A TooManyListenersException is thrown when an attempt is made to add more than one listener to an event source which only supports a single listener. It is also thrown when the same listener is added more than once.
    See Also:
    Serialized Form
    • Constructor Detail

      • TooManyListenersException

        public TooManyListenersException()
        Constructs a new TooManyListenersException with the current stack trace filled in.
      • TooManyListenersException

        public TooManyListenersException​(String detailMessage)
        Constructs a new TooManyListenersException with the stack trace and message filled in.
        Parameters:
        detailMessage - the detail message for the exception.