Adding Global Exceptions 添加全局异常处理
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
Exceptions raised in callbacks that were not properly handled or caught by a global handler would silently terminate the application, without any indication of the problem.
回调中所抛出的异常如果没有被全局处理器处理或捕获,那么他们会终止应用,并不会给出任何关于问题的提示信息。
In the Middle Ages about one in ten Europeans could read; today, with a few exceptions, such as India and parts of Africa, the global rate is comfortably above eight out of ten.
中世纪,十个欧洲人里有一个能够阅读;今天,除了印度和非洲的一些地区极个别例外,全球识字率在80%以上。
应用推荐