In a well architected process, exceptions should not cause a process to fail; instead, the work flow travels down a path specifically designed to deal with that exception (the exception path).
在架构良好的流程中,异常不应导致流程本身失败;相反,工作流应该遵循一条专门用于处理异常的途径(异常途径)。
The child is quite black, only it has white PAWS, but with that exception, it has not a single white hair on its whole body; this only happens once every few years, you will let me go, won't you?
这个孩子除了爪子是白色的,浑身黑黝黝的,连一根白毛都没有。这是好几年才会碰上的事情,你当然会同意我去的,是吗?
The child is quite black, only it has white PAWS, but with that exception, it has not a single white hair on its whole body, this only happens once every few years, you will let me go, won't you.
这个孩子除了爪子是白色的,浑身黑黝黝的,连一根白毛都没有。这是好几年才会碰上的事情,你当然会同意我去的,是吗?
With the exception that one of the listeners converts the input string to uppercase, the code for the listeners is exactly the same.
除了一个监听器将输入字符串转换成大写字母之外,监听器的代码完全相同。
With the exception that one of the listeners converts the input string to uppercase, while the second converts the string to lowercase, the code for the listeners is exactly the same.
例外情况,一个监听器将输入字符串转换成大写字母,而另一个将其转换成小写字母,这对于监听器所编写的代码都是完全相同的。
If the default handler is set with the latter pair of methods, any thread that doesn't have its own exception handler will use the default.
如果使用第二对方法设置默认处理程序,那么没有自己的异常处理程序的所有线程都将使用默认处理程序。
With the possible exception of adaptability, there is no other single property that every ESS needs to have in order to survive.
除了适应性可能是个例外,其他的单一属性没有一个是每一个ESS都所必需的。
That said, with the exception of protection against internal application attacks, most of the security hardening steps suggested in this article are fairly low cost.
因此,除了保护内部应用程序免受攻击外,本文中建议的大多数安全性加强步骤的成本都相当低。
In that situation, a real exception could be thrown with a real reason, that could easily be turned into a clear XML reply message for the consumer.
在这种情况下,可以抛出一个带有真实原因的真正异常,它可以很容易地被转换回一条清晰的XML回复信息提供给客户。
This trivial example checks whether an entry already exists with the current key before writing new data, in order to avoid an exception that would occur if data with this key already existed.
这个简单示例可检查在编写新数据之前当前键中是否已经有一个项,以避免因存在具有此键的数据而发生的异常。
They can then play their collections through a variety of devices—with the notable exception of some sold by Apple, the firm that dominates the music-download market.
随后,用户即可用多种设备播放收藏曲目,但有一明显例外,那便是,称霸音乐下载市场的苹果所售装置不在此列。
This service code is generated in the form of a skeleton implementation, with service methods that just throw an exception.
此服务代码以框架实现的形式生成,其中包含直接引发异常的服务方法。
I can see that all of these could be annoying - with the possible exception of sleeping, which deserves a little tolerance.
我能理解所有这些问题都可能令人烦恼——或许除了睡觉之外,这应该值得宽容。
A simple technique that can help tremendously involves logging a unique ID with every exception.
非常有用的一种简单技术是为每个异常都记录一个唯一的ID。
Use prefixes on all items coming from XML vocabularies that are external to your organization, with the possible exception of real content being delivered to the end user.
可能除了传递给最终用户的实际内容外,对所有来自您组织以外的xml词汇表的项都可用前缀。
But blogs have emerged as an exception, with more and more companies concluding that the public-relations benefits outweigh the risks.
但是,博客已经成为一个例外。越来越多的公司得出结论,认为公共关系利大于弊。
However, with the exception of the large outbreaks that occurred in 1999 and 2002, the disease has been kept under control through intensified prevention and preparedness activities.
然而,除了1999年和2002年的大规模发病以外,通过加强预防活动,霍乱始终保持在可控制范围内。
The data source adapter layer is very similar to that of the Compatible Query Mode with the exception of interfaces used.
数据源适配器层非常类似于CompatibleQueryMode 下的这个层,除了使用的接口不同之外。
SOAP exceptions are encoded in a manner similar to regular SOAP responses, with the exception that the Body is used to contain information about the exception.
SOAP异常的编码方式和常规SOAP响应相似,不同的是由Body来包含有关异常的信息。
A transient cookie is like any other with the exception that it is destroyed once the user disconnects from the server or is inactive for some preset time.
瞬时cookie除在用户断开与服务器的连接时被破坏或在某一段预设的时间内不活动之外,与其它的cookie是一样的。
Again, the HttpClient code will be similar to the previous code with the exception that now we have to pass the username and password in to the Twitter API as well.
再次,HttpClient代码将类似于之前的代码,除了将用户名和密码传递到Twitter API中之外。
But have you noticed that all people, with no exception, talk silently with themselves?
但你有没有发现,无一例外,所有人都会和自己静默的交谈呢?
I would have liked a few more moments like that, but with this one exception, DeLay didn't believe in consorting with the enemy.
我真希望还有更多这样的庆祝两党合作的时刻,但这是唯一的一次,连迪莱都不相信能够同敌人合作。
If that's not possible or not something you know, then make sure you bubble up an exception with helpful information so that calling programs can (hopefully) make similar smart decisions.
如果这些信息您并不知道,那么确保抛出一个提供有用信息的异常,以便调用程序能够(但愿)做出类似的智能决策。
But with one major exception, can anyone argue that the basic needs of everyone in the rich nations cannot now be met?
但是,有一个显著的例外,有人能否认现在没能满足富裕国家里每个人的基本需求吗?
One of the cornerstones of XP is that each project should have a comprehensive set of automated tests that test everything that could possibly go wrong (with the possible exception of ACTS of nature).
XP的基本要求之一是每个项目应该有一套综合的自动测试,测试可能出错(带有自然反应的可能异常)的任何东西。
That approach continues with the new 1.1 features, including the new exception-handling capabilities.
这一点在版本1.1的新特性上得到延续,包括新的异常处理功能。
I usually hit it off very well with my bosses, but this case was the exception that proved my rule of good relationships. We just didn't get on well.
我和我的老板们一直都很投缘,而上次的上司却是我被证实的良好关系规则之外的特例,我们就是相处不好,我也不知道为什么。
I usually hit it off very well with my bosses, but this case was the exception that proved my rule of good relationships. We just didn't get on well.
我和我的老板们一直都很投缘,而上次的上司却是我被证实的良好关系规则之外的特例,我们就是相处不好,我也不知道为什么。
应用推荐