一.抛出异常 vs. 返回错误代码 有人说“Well, an exception is a goto.”,但也有人言“makes the code simpler by visibly separating the general case of expected processing from the special cases of errors.” 简单地分析一下两者优劣.异常的优点:让代码更简洁,不再到处if-return:无论CheckedEx还是UnCheckEx都会强迫调用方或系统…