When you detect an error or invalid state in a function, what's the best way to handle it?
优雅的退出当你在函数中检测到一个错误或者无效状态时,最好的处理方式是什么呢? 返回一个错误代号(error code),抛出一个异常还是调用assert()?
Thus, it is possible to rapidly and accurately detect an error of the linear motion device.
由此,能够尽早并且以高精度对直动装置的异常进行检测。
Also, the test in Line 13 will fail to detect an error because the result of the call will not be an empty string.
第13行中的检查也无法探测到错误,因为调用的结果不是空字符串。
If your support personnel have to go to multiple consoles to manage a process or detect an error condition, the instances of human error increase.
如果您的支持人员需要通过多个控制台来管理一个流程或检测一个错误条件,人为错误实例将会增多。
Automatically detect that an error is being returned from an overloaded application and route future application requests to another server capable of running the application.
自动检测错误是否从过载应用程序中返回,并将下一个应用程序请求传送到另一个能够运行该应用程序的服务器。
Detect when the file breaks backward-compatibility and report an error.
在文件破坏向后兼容性时,应该能够检测并报告错误。
It does not automatically detect remote network errors, but instead relies on the first application encountering an error to announce it. (We explain more about this later.)
它并不自动检测远端网络故障,而是依赖于第一个遇到故障的应用程序宣告故障的存在(我们会在本文稍后的内容加以介绍)。
Conforming software may detect and report an error and may recover from it.
标准软件可以发现并报告错误,而且可以进行恢复。
You can detect the presence of back blocks from a failed flash operation (such as an Erase) or an invalid Write operation (discovered through an invalid Error Correction Code, or ECC).
如果flash操作(例如Erase)失败,或者Write 操作无效(通过无效的错误校正代码发现,Error Correction Code,ECC),那么说明出现了坏块。
If a query contains an error not detected during SQL verification, the database will detect the error when you run the query.
如果查询包括在SQL验证过程中未检测到的错误,则当运行该查询时,数据库将检测到该错误。
A packet sniffer could detect excessive messages being sent by a port, detecting an error in the implementation.
一网络分析能够探测过多的信息发送到一个端口,检测中的一个错误的执行。
Any use of an invalidated iterator is likely to yield a run-time error, but there is no guarantee that the program will crash or otherwise make it easy to detect the problem.
任何无效迭代器的使用都可能导致运行时错误,但程序不一定会崩溃,否则检查这种错误也许会容易些。
The build scripts will detect that you're using a non-compliant Make tool and will complain with an error message.
构建脚本将检测到你正在使用不兼容的Make工具并且用一个错误消息解释。
The build scripts will detect that you're using a non-compliant Make tool and will complain with an error message.
构建脚本将检测到你正在使用不兼容的Make工具并且用一个错误消息解释。
应用推荐