Exception-handling code can be easily added to increase program reliability.
可以轻松添加异常处理代码,以增加程序的可靠性。
An exception is a situation in which a program has an unexpected circumstance that the section of code containing the problem is not explicitly designed to handle.
异常是程序的一个未曾预料到的环节,没有代码被明确地设计用来处理包含问题的代码片断。
An exception is thrown by code when a problem occurs, and it is passed up the stack until the application handles it or the program fails.
异常在出现问题时由代码引发,并在堆栈中向上传递,直到应用程序对其进行处理或者程序失败。
应用推荐