The exception trapping provides a standard way to manage common errors from a single routine 异常设陷提供了通过一个单独的例程来管理常见错误的标准方式。
2.
A joystick allows the safe room occupant to lock and unlock doors throughout the house to trap an intruder 安全屋居住者可利用控制杆锁住和打开房门而对入侵者设陷井。
3.
Specific floating - point exception classes can be enabled or disabled for supporting a trapping environment 可以启用或禁用具体种类的浮点异常来支持设陷( trapping )环境。
4.
This traps a number of common error conditions such as syntax errors or arithmetic overflow and diverts the flow of control to a special error - handling routine youve written 这可以为很多常见的错误条件(例如语法错误或算术上溢)设陷,并将控制流转移到您自己编写的一个专门的错误处理例程。