当连接器在搜索中遇到无效文字时,它应该抛出异常,通知用户不能搜索这个值。
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.
一个线程没有获得特定的监控器,而试图等待一个对象的监控器或通知其他线程等待一个对象的监控器时抛出。
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.
应用推荐