这极为简单,使用错误的参数类型调用构造函数或方法时,会引发异常。
This is extremely simplistic and leads to an exception being thrown when a constructor or method is called with the wrong argument types.
某些派别的信徒支持使用异常来检查参数和其他的前置条件,使用错误编码来报告程序中出错的处理。
Some disciples espouse using exceptions to check parameters and other preconditions, and error codes to report processing errors within the function.
当流程在运行过程中出现问题或发生异常情况时,可以使用错误处理程序 撤消发生错误的范围中的部分工作或未成功完成的工作。
When a problem or exceptional situation occurs while a process runs, you can use a fault handler to undo partial and unsuccessful work for the scope in which the fault occurred.
应用推荐