java异常与错误处理中英文翻译.doc
还剩
94页未读,
继续阅读
下载文档到电脑,马上远离加班熬夜!
亲,很抱歉,此页已超出免费预览范围啦!
如果喜欢就下载吧,价低环保!
内容要点:
中英文翻译 第 94 页 共 95 页- 94 -} catch(Throwable e) {System.out.println("Throwable: " + e);}}monitor.expect(new String[] {"FileNotFoundException: " +"jav 中英文翻译 第 93 页 共 95 页- 93 -} catch(Exception e) { // Adapt to unchecked:throw new RuntimeException(e);}}}class SomeOtherException extends Exception { 中英文翻译 第 92 页 共 95 页- 92 -example, so don’t get too excited until after you’ve read Chapter 12). FeedbackConverting checked to unchecked exceptionsT 中英文翻译 第 91 页 共 95 页- 91 -programmers write good programs. No programming language will prevent its users from writing bad programs.[49] FeedbackIn 中英文翻译 第 90 页 共 95 页- 90 -false sense of security to people who failed to notice the exception.” [47]We see this very behavior—subverting the except 中英文翻译 第 89 页 共 95 页- 89 -validation does happen, but only at run time. If an exception is thrown that violates the exception specification, the C++ 中英文翻译 第 88 页 共 95 页- 88 -that:“...every invocation must be followed by a conditional test to determine what the outcome was. This requirement leads 中英文翻译 第 87 页 共 95 页- 87 -vanishes completely when swallowed. Because the compiler forces you to write code right away to h
发表评论
暂无评论,赶快抢占沙发吧。