许多时候,只需通过检验参数并抛出特定异常说明提供参数无效的原因就可以实现这一点。
Many times, you can do this simply by verifying arguments and throwing specific exceptions that tell why the supplied arguments are invalid.
这类错误也被称为异常,因为它们通常说明一些异常的东西(错误的)发生了。
These errors are also called exceptions because they usually indicate that something exceptional (and bad) has happened.
应用推荐