在提供者代码中必须显式地处理异常。
This is something which must be handled in the provider code explicitly.
处理异常要尽量与出现的问题紧密相关。
应该在整个应用程序中一致地处理异常。
You should handle exceptions coherently throughout the application.
检查返回值并处理异常。
调用者(即请求的发送者)负责处理异常。
The caller , in this case the sender of the request, is responsible for handling exceptions.
在DAO实现类中如何处理异常?
How will exceptions be handled within the DAO implementation class?
清单8展示了以有意义的方式抛出和处理异常。
Listing 8 demonstrates handling and throwing exceptions in a meaningful way.
用户也可以覆盖自动处理异常模式。
清单3展示了action类是如何处理异常的。
事务作为处理异常的机制。
处理异常的方式很好地说明了原作者在编写方法时的意图。
The way the exceptions are handled provides a good indication of what the original author was looking for when the method was written.
使用一种简单的默认策略,并逐例处理异常,应该就可以了。
It should work using a simple default policy, with exceptions handled on a case-by-case basis.
使用JNI代码本地处理异常,尽管有时不可避免地会导致性能下降。
Handling exceptions natively in the JNI code itself, though unavoidable sometimes, leads to performance degradation.
在使用dao模式的过程中,我们的小组开发了一些处理异常的原则。
In the process of working with the DAO pattern, our team developed a set of guidelines for exception handling. Follow these guidelines to greatly improve your daos.
但是,当同步主要是并发控制的机制时,则事务主要是处理异常的机制。
But while synchronization is primarily a concurrency control mechanism, transactions are primarily an exception-handling mechanism.
如果不能及时处理异常事件,将造成软件系统无法正确运行。
If the exception event can not be handled in time, it will make the software system not run well.
(可以在清单6中看到详细的方法清单。)接下来,该方法处理异常。
(You can see a precise listing of these methods in listing 6.) Next, the method handles exceptions.
不处理异常所带来的不良后果仍然存在,包括毁坏数据和得到不正确的结果。
All the bad effects of not handling the exceptions remain, including corrupted data and incorrect results.
以自动的方式完全处理异常会使过程流和支持它的技术解决方案变得非常复杂。
Fully handling the exceptions in an automated way would add a lot of complexity to the process flow, and to the technology solution needed to support it.
一般而言,在处理异常的时候,抛出异常的块中的局部存储不存在了。
In general, the storage that is local to a block that throws an exception is not around when the exception is handled.
通常,至于选择何种方法,取决于是否能在抛出异常时合理地处理异常。
Normally, the choice depends on whether you can plausibly handle the exception at the point where it's thrown.
既不能在compare内真正有效地处理异常,又不能在compare之外处理异常。
You can't realistically handle the exception inside compare , and you can't handle the exception outside compare .
作为一个相当复杂的分析方法的例子,考虑一下当出现更多常规处理异常时会发生什么情况。
As an example of a fairly complex analysis approach, consider what happens when more general processing exceptions occur.
只有在可以合理地预期调用者可以处理异常时,DAO接口中的方法才应该抛出检查过的异常。
Methods in the DAO interface should throw checked exceptions only if the caller can reasonably be expected to handle the exception.
本文还阐述了如何确定内部使用了哪种调用机制,因为调用机制会影响处理异常的方式。
The article also explained how to determine which invocation mechanism is employed under the covers, because it affects how exceptions are treated.
异常处理(Exception handling)——抛出和处理异常与错误时的点。
Exception handling — Points when exceptions and errors are thrown and handled.
任何线程的未处理异常都会破坏整个测试的运行,而前面提到的集成测试却需要使用多线程。
An unhandled exception on any thread will crash the entire test run, and as mentioned before, integration tests require multi-threading.
除了学习处理客户端请求和返回符合SOAP响应之外,您还将了解处理异常和产生SOAP错误的过程。
In addition to learning to handle client requests and send back SOAP-compliant responses, you also explore the process of handling exceptions and generating SOAP faults.
在处理服务请求或相应消息的过程中出现超时的时候,超时将被视为异常,必须采取某些措施来处理异常。
When a timeout occurs during the processing of a service request or response message, it is considered an exception and some measure must be taken to deal with the exception.
传统的异常处理过程在每个action类中保存异常信息,而最佳实践4则在处理异常时避免冗余代码。
While conventional exception handling procedures save exception information in every Action class, best practice 4 aims to avoid redundant code while handling exceptions.
应用推荐