如果catch子句未说明所捕获的异常类型,这个子句就可处理任何被抛出的对象。 try { breedMoreLlamas(); } on OutOfLlamasException { // 一个具体异常 ...
確定! 回上一頁