log报告中也包括错误捕捉设置。
The setting of the error catch is also reported in the db2diag.log.
db2pdcfg通过以下输出确认错误捕捉的设置。
Db2pdcfg confirms the setting of the error catch with the following output.
具体来说,类型系统为您提供了可能未预料到,但非常有用的错误捕捉可能性。
The type system in particular provides you with probably unintended but quite useful error-trapping possibilities.
分析了在多用户环境下开发应用程序时,处理记录加锁与错误捕捉的必要性,给出了解决这些问题的方。
Analyzes the importance of handling record lock and mistake arrest in developing applied pragrams for multi user surroundings and suggests solutions to some of the problems arising herefrom.
虽然我没有过多地介绍错误捕捉(error catching),但是此处的设计非常健壮,可以返回到没有使用cookie的正确行为。
While I have not shown much error catching, the design involved is robust in falling back to correct behavior where cookies are not available.
我们在捕捉到异常时设置此错误。
第二种方法就是具有专用的处理程序,“捕捉”各条语句所“抛出”的任何或特定错误条件。
The second method is to have dedicated handlers that "catch" any or specific error conditions thrown "by individual statements."
如果不用此字符串,那么所捕捉到的仅仅是正确的信息,错误信息会被忽略。
If you do not use this string, then you will be capturing only the good messages, and the error messages will not be captured.
这些严苛的要求保证了编译器可以捕捉方法调用的错误,生成的程序更可靠。
These stringent requirements ensure that the compiler can catch method invocation errors, which leads to more reliable programs.
她说,不断完善的算法自然可行,但因为现有的数据将无法捕捉整个模式,识别总是会有错误。
She says it's possible to keep refining the algorithms, but there will always be errors because the data available won't capture the whole pattern.
您将必须确保能够正确地捕捉到流程中的错误并将其抛出。
You will need to make sure that faults are caught and thrown appropriately in the process.
对于这类问题,开发人员通常会使用防御性编程技术,该技术专门用来在发生摧毁性后果前捕捉潜在错误。
For this type of problem, developers often employ defensive programming techniques that aim to catch potential errors before they wreak havoc.
MOP 就像一个安全网,捕捉传递错误的消息,但是这不是它最妙的功能。
MOP works well as a safety net to catch message passing errors, but that's not its most interesting function.
这篇文章展示了多种捕捉或防范XSLT处理中通过其他方式可能无法发现的错误的方法。
This article showed a number of ways to trap or prevent errors in XSLT processing that can go unnoticed otherwise.
加载XML文档时,最好尽可能早地捕捉到错误以免传染其他数据。
When you load an XML document, it is best to catch errors early, before they have a chance to pollute other data.
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
还要捕捉错误。
您了解了如何把数据重定向到stdin或stdout,如何使用管道,以及如何在UNIX中使用操作符;这些都有助于您编写出更强大的脚本,更好地捕捉错误,使逻辑更简洁清晰。
Knowing how to redirect data as stdin or stdout, how to use the pipe, and how to use operators in UNIX helps you write more powerful scripts with better error trapping and cleaner logic.
造成这种复杂性的部分原因是出现了一种常见的错误:通过大量的if语句捕捉所有处理逻辑来实现event方法。
This complexity is partly caused by the common mistake of implementing the event method with a large if statement to capture all the handling logic.
在本实例中(参阅图5),我们在Validate和GenerateTopology活动上添加了故障处理程序以捕捉这个活动中产生的所有错误。
In this example (see also Figure 5), we added a fault handler on the Validate and generate Topology activities to capture all of the faults generated in that activity.
这就是——如您所期待的——一个异常处理器,它现在将会捕捉如果mkdir不能创建请求的目录而被抛出的E739错误。
This is — as you might expect — an exception handler, which will now catch the E739 error that is thrown if mkdir is unable to create the requested directory.
对于SOAP客户端来说,将这个SOAP调用封装在一个try - catch代码块中是很好的做法,这样类似于上面的SOAP错误就会被顺利地捕捉和处理。
From the SOAP client perspective, it's a good idea to wrap the SOAP call inside a try-catch block, so that SOAP faults like the one above can be caught and handled gracefully.
这就是我使用try - except块的原因:我可以捕捉自己的SQL错误,并根据需要进行响应。
This is why I used the try-except block: I can catch my own SQL errors and respond to them if needed.
log文件捕捉所有DB 2安装信息,包括错误。
The db2setup.log file captures all db2 installation information, including errors.
如果这个bug的原因不这么明显的话(常常是这种情况),还可以用另一种方法捕捉这个错误。
You can catch this error another way, too, in case the bug isn't so obvious next time (which is usually the norm).
如果sql语句中有错误,就纠正它并重新运行应用程序;为了捕捉并纠正所有SQL错误,可能需要多次运行应用程序。
If there is an error in an SQL statement, fix it and possibly rerun the application multiple times to catch and fix additional SQL errors.
一个替代的方法是,您也可以在代码中直接捕捉这个异常,并且用其他方式处理异常(例如,可能会与使用信息一起输出真正的错误消息)。
As an alternative, you can catch this exception directly in your code and handle it some other way (perhaps printing out the actual error message along with usage information, for instance).
以一种可扩展的机制在捕捉组件中执行定制的检验,并处理检验过程中遇到的错误。
An extensible mechanism for executing custom validation in the capture component and handling failures of such validation.
通过a s属性提供数据类型参数已经捕捉了许多错误。
Providing a data type parameter with the as attribute already traps many errors.
在执行期间的PREPARE阶段生成的错误,比如tabledoesnotexist错误,会立即出现并且无法捕捉。
Errors that are generated during the PREPARE phase of execution, such as a table does not exist error, are raised immediately and cannot be trapped.
应用推荐