Package java.util
Class TooManyListenersException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.util.TooManyListenersException
-
- All Implemented Interfaces:
Serializable
public class TooManyListenersException extends Exception
ATooManyListenersExceptionis 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 Summary
Constructors Constructor Description TooManyListenersException()Constructs a newTooManyListenersExceptionwith the current stack trace filled in.TooManyListenersException(String detailMessage)Constructs a newTooManyListenersExceptionwith the stack trace and message filled in.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TooManyListenersException
public TooManyListenersException()
Constructs a newTooManyListenersExceptionwith the current stack trace filled in.
-
TooManyListenersException
public TooManyListenersException(String detailMessage)
Constructs a newTooManyListenersExceptionwith the stack trace and message filled in.- Parameters:
detailMessage- the detail message for the exception.
-
-