inputRecrevenue[i].pptVIP

  • 6
  • 0
  • 约1.83万字
  • 约 41页
  • 2017-06-07 发布于河南
  • 举报
inputRecrevenue[i]

* * * * * Problem: lots of code never checks return value * Exceptions Avoid empty catch blocks Better: try { … } catch (Exception e) { } try { … } catch (Exception e) { LogError(“Unexpected exception ” + e.toString() ); } What does this say about the code throwing the exception? 祟促硫瘤盛奸旧曙汲憎念待阳舶拐莽荤设允淋袋踊痕寐障牟嗽贵汰显泻霜inputRecrevenue[i]inputRecrevenue[i] Consider alternatives to exceptions Some programmers just use exceptions because that is what the language supports for errors Always consider the full set of error handling alternatives Handling the error locally Propagation the error with

文档评论(0)

1亿VIP精品文档

相关文档