Method1 Method2 Method3 Read-file call call call try- catch 产生异常 throws throws throws 异常链(Exception Chained) 有些时候方法本身并不想(或者不需要)处理它所 产生的异常,而是向上传递由调用它的方法来处理这 些异常,这时就要用到throws子...
基于6个网页-相关网页
chained exception 链式异常 ; 持所谓的链式违例
A chained exception is one that allows you to attach a "causative" exception to the exception being thrown.
一个链式异常是这样一种异常,它允许您将一个“成因”异常附加到正在抛出的异常。
The code in Listing 1 is fairly straightforward; we've simply chained together multiple exceptions to create a single, nested exception.
清单1中的代码很简单;我们已经简单地将多个异常“串”在一起,以创建单个、嵌套的异常。
应用推荐