...(member variables) 局部变量(Local variables) 方法参数(method parameter) 异常处理参数(exception-handler parameter) 是类或对象的成员,它是在类 中、但不是在类的某个方法中声明的变 量。
基于20个网页-相关网页
这意味着,如果在处理参数时执行验证,可以通过抛出异常预防类被终结。
This means that if you do your validation while processing the parameters, you can - by throwing an exception - prevent your class from being finalized.
某些派别的信徒支持使用异常来检查参数和其他的前置条件,使用错误编码来报告程序中出错的处理。
Some disciples espouse using exceptions to check parameters and other preconditions, and error codes to report processing errors within the function.
异常,包括当操作产生异常时的处理和访问异常参数的方法。
Exceptions, including what happens when an operation raises an exception and how the exception parameters are accessed.
应用推荐