Skip to content

Most visited

Recently visited

navigation
Added in API level 1

TooManyListenersException

public class TooManyListenersException
extends Exception

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


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.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

TooManyListenersException

Added in API level 1
TooManyListenersException ()

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

TooManyListenersException

Added in API level 1
TooManyListenersException (String detailMessage)

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

Parameters
detailMessage String: the detail message for the exception.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.