public class TooManyListenersException extends 异常
TooManyListenersException
异常用作Java事件模型的一部分,用于注释和实现组播事件源的单播特殊情况。
在通常的多播“void addXyzEventListener”事件侦听器注册模式的任何给定具体实现中存在“throws TooManyListenersException”子句用于将该接口注释为实现单播侦听器特殊情况,即,该唯一的一个侦听器可能同时在特定事件侦听器源上注册。
EventObject
, EventListener
, Serialized Form
Constructor and Description |
---|
TooManyListenersException()
构造一个没有详细消息的TooManyListenersException。
|
TooManyListenersException(String s)
构造具有指定详细消息的TooManyListenersException。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TooManyListenersException()
public TooManyListenersException(String s)
s
- 详细信息
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.