清单2:使用eval来捕获错误。
xml验证的目的是捕获错误的确切类型。
The purpose of XML validation is to catch exactly those kinds of errors.
一些设计来捕获错误的条款限制了适用性的范围。
Some provisions designed to catch errors limit range of applicability.
解决方案是由任何错误捕获错误捕获服务。
我使用减速板(免费光项目或卤)实际捕获错误。
I'm using Airbrake (free for light projects or devlopment) for catching actual errors.
由于改变既定的实践是如此之难,有效的方法在于预先捕获错误。
Given how difficult it is to change an established practice, the leverage is in catching the errors up front.
我也遇到了这个问题。解决方案是由任何错误捕获错误捕获服务。
I also faced this problem. Solution is to catch errors by any error Catching service.
与模板过滤器一样,这些渲染函数应该捕获错误,而不是抛出错误。
Like template filters, these rendering functions should fail silently instead of raising errors.
如果异常的原因是系统级错误,那么让错误上浮到流程级别,以便在流程级别捕获错误。
If an exception is due to a system level error, then let the error bubble up to the process level so that the exception can be caught in the process level.
最后,因为异常被传回一直到主调函数的栈,你可以在(被调用函数)的任何地方捕获错误。
Finally, because the exception is passed back up the stack of calling functions, you can handle errors at any place you choose.
数据库验证是捕获错误的最后机会,但是好的应用程序应该事先检验数据(数据库引擎的错误消息可不是易读的)。
Database validation is the last chance to catch errors, but a good application has already validated the data at that point (and error messages from the database engine are anything but readable).
这些代码维护起来会很麻烦,而为避免不必要的查找以及执行适当的错误检查就更加困难(参见“捕获错误”部分)。
This can be cumbersome to maintain, and it can be more difficult to perform appropriate error checking (see the section, "Trap for errors") and to avoid unnecessary lookups.
使用设计模型来连接在需求和代码之间的鸿沟是重要的;设计模型可以在开发和测试之前很久捕获错误和有问题的假设。
Bridging the gap between requirements and code with a design model is critical; it catches mistakes and faulty assumptions long before development and testing.
无论您的应用程序采用怎样的方式捕获错误,重要的事情都是明确地将错误告知用户,解释出错原因,帮助他们更正错误。
Regardless of how your application catches an error, the important thing is to clearly notify the users of the error, explain what went wrong, and help them to fix it.
无疑规范的代码复审可以捕获错误,并推迟似乎所有成功项目最终都逃脱不了的“大泥球(big ball of mud)”宿命。
There is no question that formal code reviews catch bugs and can delay the inevitable "big ball of mud" that all successful projects seem to turn into.
我将通过对代码求值来执行动作;如果代码可能失败,那么我将会捕获那个错误。
I'll run that action by evaluating the code; if the code should fail, then I will catch that error.
一种被广泛采用的失败处理机制是异常处理,包括捕获并记录错误,以及在失败发生时选择一个备选执行路径。
A widely adopted mechanism for dealing with failures is exception handling, encompassing both capturing and logging the error and choosing an alternative execution path in the case of failures.
添加验证代码可以帮助您更迅速地捕获可访问性错误,而不必检查整个报告。
Adding validation code could assist you in catching accessibility errors more quickly, without having to examine an entire report.
可以为范围或活动中可能发生的每个错误添加一个捕获。
You can add one catch for each fault that could potentially occur within the scope or the activity.
对于需要技术调试的问题,您只需一次单击即可执行错误数据捕获。
For problems that require technical debugging, you can do a one-click error data capture.
返回一个最小的块会帮助捕获这个错误。
Returning a minimally-sized chunk will help catch this error.
在这个示例中,我要捕获源代码编译时的错误条件。
In this example, I've attempted to capture an error condition when compiling source code.
这里错误将被捕获并显示给用户。
在您的方法中,您可以变得更主动以了解您的应用程序环境,同时增强在发生错误时捕获它们的能力。
Become more proactive in your approach to understanding your application environment while increasing your ability to trap errors upon their occurrence.
首次错误数据捕获(FFDC)也是用来做问题诊断的。
First Failure Data Capture (FFDC) is also used in problem diagnosis.
在测试中使用较小的步骤可以为我节省大量时间,因为测试用例为我捕获的这些错误在将来的开发中很难捕获到。
The tiny steps saved me time, because the test cases caught the errors that might be much harder to catch later.
最后,以我的经验,当有一个配置问题时,您捕获的错误消息往往是模糊不清的,而追踪原因也很困难。
Finally, in my experience, the error messages you get when there's a configuration problem tend to be obscure, making it difficult to track down the cause.
DB 2存储过程语言允许为特定的情况创建异常处理函数;可以用来捕获可能出现的错误。
DB2 stored procedure language allows for the creation of exception handlers for specific conditions; you will use this to trap anticipated errors.
这些测试在测试时自动计算,有助于捕获代码中的逻辑错误。
These tests are evaluated automatically during testing, where they help catch logic bugs in your code.
HTTP错误条件代码可以由错误函数捕获。
HTTP error condition codes can be caught by the error function.
应用推荐