正如前面提到过的,此层次结构中的异常未经检查。
As mentioned previously, the exceptions in this hierarchy are unchecked.
相反,您应该对此类条件使用未经检查的异常,以便能够可选地处理这些条件。
Instead, you should use unchecked exceptions for such conditions, so that you can optionally handle these conditions.
例如,如果股票交易系统遇到问题,则该服务可能因某种未经检查的异常而无法获得报价。
For example, if the stock exchange system runs into a problem, the service might fail to obtain the quote with some kind of unchecked exceptions.
应用推荐