We have to design a feature that does something in every possible case, even if that something is an error.
我们不得不设计一种适合所有可能情况的功能,即使这个功能所做的是个错误。
The standard error message for this case does not contain any specific information on why the validation action failed.
这种情况下的标准错误消息不包含关于验证动作为何失败的任何具体信息。
There's no need to print error messages for this case since file descriptors 0 through 2 are only closed if an attacker is trying to subvert your program.
在这种情况下不需要输出错误消息,因为文件描述符0到2只是在攻击者试图去搅乱您的程序的时候才会被关闭。
Any time we make a corner case into an error we need to carefully specify exactly what the error case is so that we can implement it correctly and test it confidently.
每当我们让一种特殊情况变成一个错误时,我们需要细心辨别出错误情况究竟是什么,这样我们才能正确地执行它,并且自信地测试它。
In this case, you first need to define the proper error behavior for the application when faced with corrupt input.
在这种情况下,当面临破坏输入时首先需要为应用程序定义适当的错误行为。
In the case of an error, the transaction logic can specify that the transaction rollback to a savepoint.
在发生错误的情况下,事务逻辑可以指定该事务回滚到某个保存点。
Optimistic transaction locking should not be used to update sets of rows in a single update statement, as error handling in this case is very difficult.
乐观事务锁不能用于在单个update语句中更新数据行集合,因此在这种情况下,很难进行错误处理。
In this case, I introduced an error to the code generation handling a collection, adding an extra item to the stack in the body of the item unmarshalling loop.
在这个示例中,我在处理集合的代码生成中引入了一个错误,在项目反编排循环的循环体中,向堆栈添加了一个额外项目。
In case of any error executing the command, an exception should be set in the command result.
如果在执行命令时发生了任何错误,则应在命令结果中设置异常。
We found that the majority of vulnerabilities are usually caused by a small logic error or a case that the software developer hadn't uncovered or accounted for.
我们发现大部分脆弱点通常由小的逻辑错误或软件开发人员没发现或解决的情况所引起。
Essentially, it stores all the data in the chip and reverts back in case of a prior error.
它把所有数据存储在芯片中,可以在发生错误时恢复以前的状态。
Table 2 details the HTTP response for the operation and the service response in case of error.
表2详细给出了操作的HTTP响应以及错误情况下的服务响应。
When a client or supervisor dictates how a program should process well-formed input data, take the opportunity to agree in detail on how the program should act in case of error.
当客户或主管在指示程序应如何处理格式良好的输入数据时,抓住机会,对万一发生错误时程序的具体操作细节同他们达成共识。
In this case, nothing terrible happens, and the attacker simply sees an error message in the client.
在这个示例中,没有发生什么可怕的事情,攻击者只是在客户机上看到了一条错误消息。
But if a synchronous GC occurs because of the second case — an out-of-memory error — this means the GC was unable to keep up with the application allocation.
但是如果因为第二种情况发生同步gc——内存不足错误——则意味着GC不能跟上应用程序分配。
In the case of an error page, it may be linked to a valid URL in the search engine local repository.
就错误页面来说,在搜索引擎的本地知识库中,它可能被链接到一个有效的URL。
You can now add your own custom error JSP that gets displayed in case an error occurred during rendering.
您现在还可以添加自己的自定义错误JSP,将在呈现过程中发生错误时显示。
If that is the case, a runtime error is raised.
如果的确如此,那么就会产生一个运行时错误。
In both approaches, the use case must document how the service handles the error just as thoroughly as the successful paths.
在这两种方法中,用例都必须记录服务如何像成功路径一样全面地处理错误。
Within this application, you are responsible for error handling in case an error is reported by a transaction branch, for example.
在该应用程序中,如果一个事务分支报告了错误,您就要负责进行错误处理。
The text output in the case of an error making the connection to the database is not wrapped in any kind of markup because simple output displays correctly on the phone without the markup.
如果出现数据库连接错误,文本输出不需要封装到任何标记中,因为简单输出无需任何标记即可在此电话上正确显示。
Every error case still spends design, implementation and test budget that could have been spent elsewhere.
每种错误情况仍然花费设计、施行和测试的预算,而在这上面花费的预算原可以花在其它地方。
A transaction is a set of atomic actions that either all occur successfully or are rolled back in the case of error.
事务就是一组原子操作,可能全部成功完成,或在出现错误时回滚。
The widget has been implemented to display the related error message and to change the look and feel in case any error occurs while setting its value.
这个小部件能够显示相关的错误消息,如果在设定其值时发生错误,还能改变观感。
This could be used for the purpose of testing selpg, when you may only want (for some test case) to see the error messages, not the normal output.
这可作为测试selpg的用途,此时您也许只想(对一些测试情况)检查错误消息,而不想看到正常输出。
Customize the application to reconnect in case a connection fail error message is returned.
定制应用程序,以便在返回连接失败的错误消息时重新进行连接。
In a similar vein, update the SearchErrorView to return an XML-encoded error message in case of an error in input validation or query execution.
以类似的方式更新SearchErrorView,以便在输入验证或查询执行中出现错误时返回一个XML编码的错误消息。
In the case that there were some error, the associated fault handler is notified instead.
而如果服务调用中出现了错误,则相关联的fault处理器会被通知。
In this case, the error shows that the second and third letters of "math" are transposed.
在本例中,错误消息显示math的第二和第三个字母颠倒了。
A challenging error-handling case occurs when a client needs to know the outcome of a request in order to take the next step, after failure of a server.
其中一项挑战性的错误处理工作发生在以下的情况。当服务器发生故障以后,客户端需要了解请求的结果以进行继续的工作。
应用推荐