如果测试失败,就报告错误消息,指出故障点,同时程序执行中断。
If a test fails, an error message is reported, indicating the point of failure, and program execution halts.
这就是SAX的真正用途所在:在程序中断处理过程并进行修复之前,允许接收可能错误的数据或者错误状态。
That's where SAX can really help: it allows you to receive possibly bad data or error conditions before the program halts processing and gives you a chance to make course corrections.
请参见下载文件中的样例应用程序,学习如何设置中断格式及应用程序指定的错误代码。
See the sample application in the download file to see how to set the abort format and application-specific error codes.
应用推荐