You should document any and allexceptions that a member function throws at you so that other programmers know what their code will need to catch.
您应该对成员函数向您掷出的所有异常编制文档,以便其它程序员知道他们的代码将需要捕捉什么。
2
It is still advisable that you catchallexceptions and handle them appropriately, as shown in the following code.
如下面的代码所示,发现所有的异常并正确的处理他们仍是明智之举。
3
Another healthy practice is to catchallexceptions and fall back to reporting UNKNOWN service status so that Nagios can manage notification of this fact appropriately.