| 1. | Now , run the program with assertion checking enabled 现在,请带有启用断言检查运行该程序: |
| 2. | Option , to enable assertion checking 选项来启用断言检查。 |
| 3. | Package , but not the 包启用断言检查,但不对 |
| 4. | Running the program with assertion checking enabled produces the following error report 带启用断言检查运行程序产生下面的错误报告: |
| 5. | The following simple example walks you through the necessary steps to add assertion checking to your program 下面的简单示例向您介绍了向程序中添加断言检查的一些必要步骤。 |
| 6. | Assertion checking is disabled by default , so you ll also have to explicitly enable this facility at run time 缺省情况下,会禁用断言检查,因此在运行时您也要显式地启用这一功能。 |
| 7. | Assertion checking is like exception handling , but no exception is thrown when an assertion fails . instead , an 断言检查就象异常处理,但是当断言失败时,却不会抛出异常,而会抛出一个 |
| 8. | Use assertions to check relationships between fields - for example , the purchase order s total is the sum of the order lines 使用断言检查字段之间的关系,比如订单中的总量是各行之和。 |
| 9. | In addition to enabling assertion checking from the command line , you can also programmatically enable or disable checking 除了从命令行启用断言检查之外,您也可以通过编程启用(或禁用)检查。 |
| 10. | If you want to enable assertion checking for a whole set of packages but not for a class or package tree , that s where the 如果希望对包的整个集合启用断言检查,而不是某个类或包(树)启用断言检查,则 |