函数测试包括函数功能正确性测试和错误调用时返回状态正确性测试。
The testing of functions includes that the function is correct by the function testing and each function can return its error code correctly when it is called incorrectly.
执行将恰在分配该块以前中断,您可以向回追踪以确定哪个例程执行了错误调用。
Execution will break just before allocating the block, and you can backtrack to determine what routine was responsible for the bad call.
Web服务客户机将针对每个请求、响应和错误调用 WS.Handler对象的各个方法。
The Web services client invokes the methods of the WS.Handler object on every request, response, and error.
模拟阅读开始于addr的size字节,产生读取将会导致的任何purify错误,根据错误调用purify_stop_here。
Simulates reading size bytes starting at address addr, generates any purify errors that read would cause, and calls purify_stop_here upon error.
模拟写入开始于addr 的size字节,产生写入将会导致的任何Purify错误,根据错误调用 purify_stop_here。
Simulates writing size bytes starting at address addr, generates any Purify errors that write would cause, and calls purify_stop_here upon error.
每当对应的客户端套接字包含读、写或错误操作时,调用对应的回调函数。
Each time a corresponding client socket contains any read, write or error operations, the corresponding callback function is called.
第一,也是最重要的一点,没有关于 JSONP调用的错误处理。
First and foremost, there is no error handling for JSONP calls.
如果错误是由于调用数据库对象而产生的,那么可以在那个数据库对象上调用上述两个方法。
If the error resulted from a call on the database object, you would invoke those methods on the database object instead.
在方法返回错误值时,每一个方法调用都要包含错误处理代码。
When methods return error values, every method call is surrounded by error-handling code.
要确保脚本能够应对错误;如果方法调用失败,它会抛出异常。
Be sure your script is protected from an error; if the method call fails, it throws an exception.
值得重点注意的是,因某个错误而失败的调用可能并不是该错误的原因,错误的原因可能已经在更早以前发生。
It's important to note that the call that fails with an error might not be the cause of the error, which could have happened much earlier.
第13行中的检查也无法探测到错误,因为调用的结果不是空字符串。
Also, the test in Line 13 will fail to detect an error because the result of the call will not be an empty string.
该方法的问题是,和为错误的构造函数调用报告错误一样,程序员将无法预知其程序的某一次运行将崩溃。
The problem with this approach is that, like signaling errors for bad constructor calls, the programmer will have no way of predicting that a given run of his program will crash.
有关系统调用中出现错误的更多信息,请参阅系统调用错误一节。
For more information on errors that can occur in system calls, see the section system call errors.
这些严苛的要求保证了编译器可以捕捉方法调用的错误,生成的程序更可靠。
These stringent requirements ensure that the compiler can catch method invocation errors, which leads to more reliable programs.
错误处理程序是范围或调用活动的可选部分。
A fault handler is an optional part of a scope or invoke activity.
这极为简单,使用错误的参数类型调用构造函数或方法时,会引发异常。
This is extremely simplistic and leads to an exception being thrown when a constructor or method is called with the wrong argument types.
服务通常由面向最终用户的应用程序(需要向最终用户提供关于错误的信息)调用。
Services are frequently invoked by end-user-facing applications that need to convey error information to the end user.
在大多数情况下,要找出错误的起因,需要进行某种类型的跟踪,以便通过跟踪来揭示导致错误的调用序列。
In most cases, to find out the cause of the error you need to take some type of trace that will show the sequence of calls that lead up to the error.
为简便起见,调用失败时仅返回错误消息。
For the sake of simplicity, I just return the error message if the call fails.
在操作完成和接收到响应或错误之前,服务调用被阻塞。
The service invocation is blocked until the operation completes and the response or fault is received.
当运行时基础结构抛出错误时、调用服务时或者在抛出活动运行时会引发错误处理程序。
A fault handler is triggered when a fault is thrown by the runtime infrastructure, when a service is called, or when a throw activity runs.
signal语句用于显式地发出一个错误并强制调用处理程序。
The SIGNAL statement is used to explicitly raise an error and force the invocation of a handler.
一个需要动态流程选择的出色场景示例是,根据遇到的错误类型调用不同的异常处理流程。
A good example of a scenario where dynamic process selection is justified is the case where different exception handling processes may be invoked depending on the type of error that is encountered.
调用外部服务返回意外错误。
The invocation of an external service returns an unexpected fault.
f跟踪通过fork或vfork创建的所有子进程,跟踪输出中包括它们的信号、错误和系统调用。
F follows all children created by fork or vfork and includes their signals, faults, and system calls in the trace output.
其他任何值都会在客户机代码中生成一个错误,如果调用了Web服务,则生成一个故障。
Any other values generate either an error in the client code or a fault when the Web service is called.
接下来,遍历遇到的每个错误并为每个错误对象调用libxml_display_error函数。
Next, you step through each of the errors you encountered and invoke the libxml_display_error function for each error object.
badverfs—由于响应中的错误验证而失败的调用的次数。
Badverfs -number of times the call failed due to a bad verifier in the response.
随后我们用错误码调用exit()函数;对于本实用程序,我们已经选择了对每个不同错误条件返回不同数字。
Then we call the exit() function with an error code; for this utility, we've chosen to return different numbers for every different error condition.
应用推荐