当insert语句失败并且错误代码在DECLAREEXIThandler语句中指定,那么控制将传递到处理程序,而过程将退出。
When the INSERT statement fails with the error code specified in the DECLARE exit handler statement, control passes to the handler, and the procedure is exited.
INSERT错误将控制转移到 SQLSTATE代码的退出处理程序。
The INSERT error transfers control to the exit handler for that SQLSTATE code.
如果这个异常没有被捕捉到,它将立即关闭应用程序,并将一条错误消息和栈跟踪输出到控制台。
If this exception isn't caught, it will immediately kill the application with an error message and stack trace dumped to the console.
清单13展示了一个特定的错误如何将控制转移给退出处理程序,其中根据SQLCODE的值返回用户定义的错误消息。
Listing 13 demonstrates how a specific error can transfer control to the exit handler where a user-defined error message is returned depending on the value of the SQLCODE.
如果您要对状态代码进行控制,就可以设置应用程序来处理脚本错误、非预期的响应以及边缘情况。
If you have a handle on status codes, you can set your application up to deal with a script's errors, unexpected responses, and edge cases.
对于表3左侧列的DB 2示例,如果某条sql语句失败并生成一个错误,那么控制将被传递给条件处理程序。
In the case of the DB2 example in the left column of Table 3, if a particular SQL statement fails and generates an error, control is passed to the condition handler.
这段代码检查ISBN对象是否不相同。如果不同的话,停止程序的执行,并将控制转移给处理这种错误的处理代码。
In this code we check whether the ISBNs differ. If so, we discontinue execution and transfer control to a handler that will know how to handle this error.
例如,使用前面已经完成的代码,如果您执行时在第一个jsp页面中输入值0,则将在应用程序服务器控制台上产生一个错误。
For example, with the code that has been completed so far, if you enter a value of 0 in the first JSP page during execution, an error message will be generated on the application server console.
开发人员可能会在通过Geronimo的控制台访问了Derby数据后再尝试访问CustomerService实用程序时遇到SQLException错误,反之亦然。
Developers may encounter an SQL Exception error when trying to access the Customer Service utility after having accessed the Derby database from Geronimo's console, or vice versa.
当嵌套的TRY块中出现错误时,程序控制将传递到与嵌套的TRY块关联的CATCH块。
When an error occurs within a nested TRY block, program control is transferred to the CATCH block that is associated with the nested TRY block.
即使你觉得这样也是可行的,但是通常由于终端程序员无法准确的实用类成员,如果有没有使用权的控制,那么我们就无法去阻止错误的发生。
Even though you might really prefer that the client programmer not directly manipulate some of the members of your class, without access control there's no way to prevent it.
硬件瞬时故障可以通过修改指令操作码和操作数的方式引发控制流错误,破坏程序的正常执行。
Hardware transient faults can cause control flow errors and corrupt the normal execution process by altering the operand and opcode of instructions.
每次错误处理程序将控制返回给调用过程时,那个过程就成为当前过程。
Each time the error handler passes control back to a calling procedure, that procedure becomes the current procedure.
这个程序通过控制用户程序的执行来避免错误的发生和计算机的不当使用。
This program controls the execution of user programs to prevent errors and improper use of the computer.
我们对财务管理周期的各种内在风险进行识别后,由于要么控制程序不起作用、要么控制程序不到位,所以可以考虑可能出现的错误陈述的类型。
After we identify tile cycle's inherent risks, we can consider the types of errors that could occur either because a control procedure fails or is not in place.
异常处理机制是一种运行时错误通知机制,将程序的正常控制代码和错误处理代码分离。
Exception handling is a runtime-error notifying mechanism. It separates the error handling code from normal code and makes software do its utmost to run on the normal state.
你可能会遇到这个错误讯息之一,原因如下:您的声音设备,如声卡或声音控制器,需要一个更新的驱动程序。
You might encounter this error message for one of the following reasons: Your sound device, such as a sound card or sound controller, requires an updated driver.
当测试代理程序与测试控制器在同一部电脑上执行时,可能也会发生此错误。
It can also occur when the test agent is running on the same computer as the test controller.
即使是最简单的控制台应用程序将显示相同的错误,所以它不是具体到一个项目,必须与系统配置有问题。
Even the simplest console application will show the same error, so it's not specific to a project and has to be a problem with the system configuration.
实验结果表明,对电源控制系统采用时间错误的解决措施后,能对程序运行过程中出现的时间错误进行及时有效的保护。
Experimental results show that those methods offered to handling timing errors in real-time system can work successfully and availably.
实验结果表明,对电源控制系统采用时间错误的解决措施后,能对程序运行过程中出现的时间错误进行及时有效的保护。
Experimental results show that those methods offered to handling timing errors in real-time system can work successfully and availably.
应用推荐