public class

TooManyListenersException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.util.TooManyListenersException

Class Overview

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.

Summary

Public Constructors
TooManyListenersException()
Constructs a new TooManyListenersException with the current stack trace filled in.
TooManyListenersException(String detailMessage)
Constructs a new TooManyListenersException with the stack trace and message filled in.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public TooManyListenersException ()

Since: API Level 1

Constructs a new TooManyListenersException with the current stack trace filled in.

public TooManyListenersException (String detailMessage)

Since: API Level 1

Constructs a new TooManyListenersException with the stack trace and message filled in.

Parameters
detailMessage the detail message for the exception.