否则,就返回适当的错误状态标志。
任何响应或错误消息将被映射到返回消息中的状态字段。
Any response or fault message is mapped out to the status field in the return message.
如果没有足够的库存来满足订单的需要,就会适当地设置订单的状态并返回一个错误。
If there is insufficient stock to fulfill the order, the order's status is set appropriately and an error is returned.
命令的返回状态可用于确定特定的命令是否正确运行,或者是否生成了某种类型的错误。
The return status from a command can be used to identify whether a particular command ran correctly, or whether it generated some sort of error.
在这种情况下,过程会立即退出并向调用者返回一个错误状态。
In this case, the procedure exits immediately and returns a failing status to the caller.
如果跳过应答活动,则请求在流程完成之前仍保持开启状态,并向调用方返回错误。
If a reply activity is skipped the request remains open until the process completes, and an error is returned to the caller.
如果没有遇到意外错误,您应该期望只有当容器进入给定的状态时lxc - wait才返回。
Barring unforeseen errors, you should expect lxc-wait to return only when the container has entered the given state.
如果设置这个变量,那么当脚本或程序返回非零值时tcsh会显示退出状态,这会指出潜在的错误。
If you set this variable, TCSH displays the exit status whenever a script or program returns a non-zero value, thereby indicating a potential error.
如果状态不是good,就返回错误代码。
If the status is not good, then return the appropriate error code.
目标验证返回一个“Completed”状态,表示不存在验证错误。
The Target validation returns a status of "Completed" which indicates that there are no validation errors.
例如,在清单3中,当执行square - root(- 22.0)时应该产生错误消息,程序退出,返回状态应该是- 1而不是- 1.0。
For example, in Listing 3, it would be good to receive an error message when doing square-root (-22.0) and exiting the program with return status -1 instead of returning -1.0.
从每个调用中收集状态描述是很好的实践,例如将错误代码等返回到一个可重复的数组中然后原样返还给服务消费者。
It is a good practice to collect status description from each invoke such as return codes etc. into a repeatable array and return the same back to service consumer.
上面的译文便犯了定义过宽的错误。 试译:腐蚀是金属(如低碳钢)返回其天然状态(如氧化铁即铁锈)的电化学过程。
Corrosion is an electro-chemical process by which a metal such as mild steel ,returns to its natural state ,state ,such as iron oxide or rust.
从命令的输出可以看到,如果获得的状态代码与预期的代码不匹配,将返回一个错误。
As you can see from the output of the command, it only returns an error if it gets a status code that doesn't match what is expected.
返回一个字串来描述特定的状态信息或错误代码。
Returns a string describing the specified status code or error code.
成功调用了服务后,应该看到您的字符串返回到ServicesExplorer的状态窗口,指示调用了服务并已返回,没有出现任何错误。
With the successful invocation of your service you should see your string returned to the status window of the Web Services Explorer, indicating that the service was called and returned without error.
如果已经设置了此变量,set——query返回状态码0,这表示没有出现错误;否则,返回1。
If the variable is set, set — query returns a status code of 0, indicating that no error occurred; otherwise, it returns a 1.
控制现在返回到connect函数,该函数处于睡眠状态,直到协议层唤醒—指示连接现在是ESTABLISHED,或套接字上存在错误。
The control now returns to the connect function, which sleeps until the protocol layer wakes up-indicating that the connection is now ESTABLISHED or that there has been an error on the socket.
返回最近调用此函数产生的状态信息或错误代码。
Returns an error or status code associated with the most recent function call.
优雅的退出当你在函数中检测到一个错误或者无效状态时,最好的处理方式是什么呢? 返回一个错误代号(error code),抛出一个异常还是调用assert()?
When you detect an error or invalid state in a function, what's the best way to handle it?
如果处理程序返回一个错误状态,所有阶段将停止,请求将被中止。
All phases will stop and the request will be aborted if a handler returns an error status.
如果发现自己对错误的文件做了大量修改,你使用对话框作为一种逃离方式,将文档返回正确的状态。
If you discover yourself making big changes to the wrong file, you use this dialog as a kind of escape valve to return things to the status quo.
因为异常已被处理,所以该事件方法不返回HTTP错误状态代码。
Because the exception has been handled, the event method does not return an HTTP error status code.
函数测试包括函数功能正确性测试和错误调用时返回状态正确性测试。
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.
由于服务器返回了错误状态,投递失败。
The post failed because the server returned an error status.
考虑调用返回一个错误状态的情况,这种情况下可能会提示用户一些莫名其妙的信息。
Consider the effects of a call returning with an error status - perhaps alert the user somehow. A pattern like Synchronisation Status helps here, to alert the user that some data is stale.
除非响应的是一个HEAD请求,否则服务器就应该返回一个解释当前错误状况的实体,以及这是临时的还是永久性的状况。 这些状态码适用于任何请求方法。
Except when responding to a HEAD request, the server shouldinclude an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition.
除非响应的是一个HEAD请求,否则服务器就应该返回一个解释当前错误状况的实体,以及这是临时的还是永久性的状况。 这些状态码适用于任何请求方法。
Except when responding to a HEAD request, the server shouldinclude an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition.
应用推荐