It is still advisable that you catchallexceptions and handle them appropriately, as shown in the following code.
如下面的代码所示,发现所有的异常并正确的处理他们仍是明智之举。
2
Another healthy practice is to catchallexceptions and fall back to reporting UNKNOWN service status so that Nagios can manage notification of this fact appropriately.