The error handler, if one is provided, is the index on the stack of the Lua code to handle any errors that occur.
如果提供错误处理程序,那么它应该是用于处理任何发生的错误的Lua代码在栈上的索引。
处理错误条件。
If no handlers are found to handle the request, the server will return a 501 error.
如果没有找到处理请求的处理程序,服务器将返回一个501错误。
These considerations are just part of an overall exception handling and error strategy that must describe how to handle all kinds of exceptional situations, not just timeouts.
这些考虑事项仅仅是整体异常处理和错误战略的一部分,此类战略必须详述如何处理所有类型的异常情况,而不仅仅是超时。
The arguments to this callback function include a transaction handle and an error object.
该回调函数的参数包括一个事务句柄和一个错误对象。
How does the service handle error conditions?
服务如何处理各种错误情况?
Later in the testing section you'll see how to handle thrown errors and display the error message to the user.
稍后在测试一节中,您将了解如何处理抛出的错误并将错误消息显示给用户。
If a service thread does not handle an exception due to programming error, it will kill the whole application.
如果服务线程因编程错误而没有处理某个异常,则会造成整个应用程序崩溃。
Applications that handle these events can provide custom error processing.
处理这些事件的应用程序可以提供定制错误处理。
The user doesn't see all the low-level code executions to handle single or multiple commands but rather a very simplistic input, output, and error.
用户不会看到处理单个或多个命令的所有底层代码的执行情况,而是看到非常简单化的输入、输出和错误。
If possible, route the process to a person who can handle the error.
如果可能,将流程路由到能够处理错误的人。
It's important for a service not only to work properly under good conditions, but also to handle error conditions properly.
服务不仅要在条件良好的情况下正常工作,而且还要能够恰当地处理出现错误的情况,这非常重要。
The error message is printed primarily because the programmers were too lazy to figure out how to handle the error, so they pushed the work onto the user.
然而由于程序员懒得寻找处理错误的方式,因此大多数情况下会打印错误消息,这样他们就将这项工作推给了用户。
There is no guarantee that the service can handle data that is not valid, so a runtime error can occur.
这不能保证服务可以处理无效数据,因此将出现一个运行时错误。
The idea is that eventually one of these handlers in the chain will handle the request, and no error is raised.
道理在于,该链中的处理程序之一最终将处理请求,而错误信息不会出现。
This is required if an unexpected error occurs and there is no fault handler specifically modeled to handle it.
如果发生意外错误,并且没有专门建模错误处理程序来处理该错误,则需要该操作。
Every time you call a function that can return an error, you need to be careful to check that your request produced the result you expected (or handle the error if it didn't).
每次您调用一个可以返回错误值的函数时,就必须小心地检查请求所生成的结果正是您所希望的(如果不是,就需要对错误进行处理)。
The exact source of the exception could provide a lot of vital information to better handle it, or the information could be appended to the error log for postmortem.
异常的具体来源可以提供许多更好地处理该异常的重要信息,或者提供一些可以附加到错误日志的信息,以便以后进行分析。
Thankfully, most other programming languages include exception handling, which can make it somewhat easier to handle error cases.
值得感激的是,大部分其他编程语言都包含有异常处理的功能,这可以某种程度上简化错误处理的过程。
In order for a JSP page to function as an error page, it must include a directive that declares the page to be a special page designed to handle errors, as follows.
为了使一个JSP页面能够作为一个错误页面,它必须包含一个指令来声明这个页面是指定用来处理错误的特殊页面,指令如下。
If there is no matching IBM Cognos 8 service available, the request will fail with an error stating that there is no service available to handle that type of request.
如果没有匹配的IBMCognos8服务可用,请求将失败并报告一个错误,表明没有可用服务可以处理这种请求类型。
You can handle errors at the make stage in a similar way; however, such errors often generate huge numbers of error messages.
您可以以类似的方式在make阶段处理错误;然而这类错误通常生成大量错误消息。
You still need to handle this exception of course, but writing a catch block to handle a detected error is much simpler than writing code to detect all possible errors.
当然还需要处理这个异常,但编写一个catch块来处理检测到的错误比起编写代码来检测所有可能的错误来说要简单得多。
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.
很难处理所有的错误条件,但是这一小小的改变能够涵盖典型Web应用程序中80%的问题。
The problem with allowing the servlet container to handle exceptions is that it severely limits what can be displayed on the resulting error page and makes transactional rollbacks all but impossible.
允许servlet容器处理异常的问题在于,这严重限制了错误页面上显示的内容,并且禁止了事务回滚。
To do this, you can declare that your JSP page USES a separate page to handle error messages. This is accomplished by including the following page directive anywhere in your JSP page.
要实现这一功能,您可以声明,您的jsp页面使用一个单独的页面来处理错误消息。
Both the Struts version and the Rails version handle a validation error in the same way: Render the page again, with error messages marking the form fields that need to be corrected.
Struts和Rails采用了同样的方式来处理验证错误:重新渲染相应的页面,并将需要改正的表单输入域用错误信息标识出来。
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).
一个替代的方法是,您也可以在代码中直接捕捉这个异常,并且用其他方式处理异常(例如,可能会与使用信息一起输出真正的错误消息)。
While we know how to tell a robot to handle a specific error.
即我们知道如何告诉机器人去处理一个具体的错误。看懂了这句话,这道题就很容易了。
While we know how to tell a robot to handle a specific error.
即我们知道如何告诉机器人去处理一个具体的错误。看懂了这句话,这道题就很容易了。
应用推荐