IDL允许创建异常来指出错误条件。
IDL allows you to create exceptions to indicate your error conditions.
这段代码用于执行查找并检查错误条件。
In this code, we perform the lookup and then check for an error condition.
HTTP错误条件代码可以由错误函数捕获。
HTTP error condition codes can be caught by the error function.
消息过期是以不同方式处理的另一种错误条件。
Message expiration is another error condition that is processed differently.
使用脚本确定真正需要的内容或查找错误条件。
Use script to identify what you really need or find error conditions.
处理错误条件。
在这个示例中,我要捕获源代码编译时的错误条件。
In this example, I've attempted to capture an error condition when compiling source code.
这段代码依赖断言语句来处理错误条件。
This code relies on the assertion statement to handle the error condition.
测试错误条件,这些错误条件应已处理。
静态错误条件中包括未知的XSLT元素、属性和函数。
Included among the static error conditions are unknown XSLT elements, attributes, and functions.
不幸的是,出现这种错误条件时您不会收到明确的错误消息。
Unfortunately, you do not receive an explicit error message if this error condition occurs.
测试错误条件。
提供有关用于捕获和处理错误条件的方法的信息和准则。
Provides information and guidelines on ways to capture and handle error conditions.
引发的异常类应该是符合错误条件的最确切的可用异常。
The exception class that is thrown should be the most specific exception available that fits the error conditions.
这些代码生成如清单8所示的JSON数据,假设给出了一个错误条件。
This code generates the following JSON data shown in Listing 8, assuming an error condition is present.
未能正确处理错误条件-退出当前的许可对象从来没有被设置。
Failed to handle error condition correctly - exiting The current license object has never been set.
可以使用断言在代码中应已处理了所有错误的点处测试错误条件。
You can use assertions to test for error conditions at a point in your code where any errors should have been handled.
开发团队为每个用例生成一些情境来说明事件流和各种错误条件(参见图1)。
Development teams typically generate a few scenarios per use case to illustrate both a typical flow of events and various error conditions (see Figure 1).
用于报告错误条件;设备驱动经常使用KERN_ERR报告硬件难题。
Used to report error conditions; device drivers often use KERN_ERR to report hardware difficulties.
除了这些内置警报,还可以通过订阅错误条件列表或配合使用日志系统来生成定制警报。
In addition to the built-in alerts, custom alerts may be generated by subscribing to a list of error conditions or in conjunction with the logging system.
集成到CPU芯片的浮点数单元产生一个错误条件,比如数字溢出或者除0。
The floating-point unit integrated into the CPU chip has signaled an error condition, such as numeric overflow or division by 0.
这就是为什么我们通常只在极端的情况(例如错误条件)中才会看到要记录日志的原因。
That is why you might normally see logs only in extreme cases, like error conditions.
第二种方法就是具有专用的处理程序,“捕捉”各条语句所“抛出”的任何或特定错误条件。
The second method is to have dedicated handlers that "catch" any or specific error conditions thrown "by individual statements."
开发人员通常将重点放在他们测试中的错误条件上,然而单元测试应该测试软件的几个方面。
The developers often focused on error conditions in their tests, whereas unit tests should test several aspects of software.
当发生故障转移时,所有应用程序被断开连接,客户机将一个通信错误条件返回给应用程序。
When a failover takes place, all applications are disconnected, and the client returns a communication error condition to the application.
第一步应确定此错误条件是特定于一台计算机还是其他计算机也显示相同的消息。
As a first step, you should determine whether this error condition is specific to one computer or if other computers display the same message.
很难处理所有的错误条件,但是这一小小的改变能够涵盖典型Web应用程序中80%的问题。
This is hardly going to handle every error condition, but it's a simple change that covers 80 percent of the problems that can occur in a typical Web application.
如果违反了您在触发器中定义的业务规则,就可以使用signal语句来抛出一个错误条件信号。
You can use a SIGNAL statement to raise an error condition if the business rule defined in your trigger is violated.
若要响应用户错误和运行时错误条件(例如网络错误或权限失败),应引发一个异常。
To respond to user errors and to run-time error conditions such as network errors or permission failures, throw an exception.
如果您的支持人员需要通过多个控制台来管理一个流程或检测一个错误条件,人为错误实例将会增多。
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.
应用推荐