For instance, adding elements to a Queue could be done with the add method of Collection, throwing an unchecked exception on failure.
例如,向Queue添加元素可以用Collection的add方法来实现,它在失败时会抛出未检测异常。
You might even want to automatically unregister a listener that throws an unchecked exception; after all, this is evidence that the listener is broken.
对于抛出未检测异常的侦听器,您可能想自动对它取消登记,毕竟,抛出未检测异常就证明侦听器坏掉了。
You might even want to automatically unregister a listener that throws an unchecked exception; after all, this is evidence that the listener is broken.
对于抛出未检测异常的侦听器,您可能想自动对它取消登记,毕竟,抛出未检测异常就证明侦听器坏掉了。
应用推荐