当连接器在搜索中遇到无效文字时,它应该抛出异常,通知用户不能搜索这个值。
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.
应用推荐