They will not be prepared to handle an exception that unexpectedly bubbles up from compare .
它们没有准备好处理compare中意外出现的异常。
You want to partially handle an exception before passing it on for additional handling.
所需部分处理异常之前将它传递进行额外处理。
Any arbitrary code can enter a When block to decide whether or not to handle an Exception.
任何的代码都可以添加When去决定是否要处理某个异常。
What does that say? It says if in the code up here I get an exception of that sort, I'm going to go to this place to handle it.
这意味着如果在代码中,我得到一个这样的异常,我能到这里来处理它。
应用推荐