当连接器在搜索中遇到无效文字时,它应该抛出异常,通知用户不能搜索这个值。
Whenever your connector encounters an invalid literal in a search, it should throw an exception informing the user that this particular value cannot be searched on.
当那个错误被抛出,catch块将会拦截它,并再次调用AskQuit,通知您不能创建目录,并询问您是否依然想要继续。
When that error is thrown, the catch block will intercept it and will call AskQuit again, informing you that the directory could not be created, and asking whether you still want to continue.
抛出活动允许您通知流程中出现问题。
A throw activity lets you signal that something has gone wrong in your process.
Dispose仍然会抛出异常,但并非总是会通知你某些事情发生错误。
Dispose can still throw, but it won't _always_ notify you that something went wrong.
一个线程没有获得特定的监控器,而试图等待一个对象的监控器或通知其他线程等待一个对象的监控器时抛出。
Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
一个线程没有获得特定的监控器,而试图等待一个对象的监控器或通知其他线程等待一个对象的监控器时抛出。
Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
应用推荐