在完成了第一轮需求分析后,您手中拥有的这些叙述性说明会使程序的异常处理设计更为合理且更有价值。
With a first round of requirements analysis complete, the narrative notes you have in hand will make design of your program's exception-handling far more rational and rewarding.
举例说明,如果一个激光器正处于电流过载状态,持续下来可能导致机器损坏。传感器能够探测出异常,在损坏发生之前提醒操作人员进行处理。
For instance, if a laser is experiencing an overcurrent situation that could lead to machine failure, the sensors would detect this so that the situation can be addressed before a failure occurs.
处理异常的方式很好地说明了原作者在编写方法时的意图。
The way the exceptions are handled provides a good indication of what the original author was looking for when the method was written.
应用推荐