Lastly, I discussed the design and implement problem of the business layer and data exception handle.
最后阐述了业务层与数据层异常处理的设计及策略问题。
You must use this exception mechanism unless the client already knows how many data items to expect.
您必须使用这种异常机制,除非客户机已经了解期望的数据项数量。
Often, data access APIs such as JDBC and JPA provide only very generic information about the exception condition, and do not allow the specific cause to be effectively identified.
通常,诸如jdbc和JPA等数据访问API仅提供有关异常条件的非常一般的信息,并且不支持有效地确定特定的问题根源。
Therefore, routing to foreign ODRs could be considered an exception for the purpose of making applications highly available in case all ODRs in a data center fail.
因此,路由到外部ODR可以被视为一个例外,用于在数据中心内的所有odr全部故障的情况下保持应用程序高可用性。
Significant reduction of tedious code for data conversion and exception handling, allowing you to focus on core business logic.
极大地减少用于数据转换和异常处理的繁琐代码,从而专注于核心业务逻辑。
If you want to avoid the exception, then the data must be truncated to fit the field and you must code additional logic to do the truncation.
如果您希望避免该异常,则必须将数据截断以适应该字段,并且必须编写附加的逻辑代码来处理截断。
In this class, you define what the client page does with the data (or the exception) when the server is done.
在这个类中,定义服务器操作完成时客户机页面如何处理数据(或异常)。
Another issue with lazy fetching is that the database connection has to be retained until all the required data is fetched else the application will throw a lazy loading exception.
延迟抓取的另一个问题就是在获取到请求的数据前要一直打开数据库连接,否则应用就会抛出一个延迟加载异常。
If however, something changed with the target data in the interim, a synchronization exception will be thrown.
但是,如果在次期间目标数据被更改,就会抛出一个同步异常。
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.
这个简单示例可检查在编写新数据之前当前键中是否已经有一个项,以避免因存在具有此键的数据而发生的异常。
PHP is no exception, with a number of database APIs and variations on data Object patterns available.
PHP也不例外,有很多数据库api和数据对象模式的变体可以选择。
The program has nested exception handling to deal with situations in which it looks up nonexistent data to delete, making the program a bit more robust.
其中嵌入了应对没有可供删除的数据这种情况的异常处理语句,使得程序更健壮一点。
In some cases, it's also possible to extract additional data that's not in the original exception.
在一些情况中,我们还可能提取不在原始异常中的其他数据。
With the exception of the edit mode component, actions are typically used to search and select a data element type.
除了编辑模式组件以外,操作通常用于搜索和选择数据元素类型。
Most initial assessments find that close to 15% of legacy data has some form of embedded logic or exception handling embedded in the data.
大多数初始的评估发现,将近15%的遗留数据有某种形式的内嵌逻辑或异常处理。
So far, if a reader thread wanted to read data from a queue that had no data, you just threw an exception and moved on.
目前,如果读线程试图从没有数据的队列读取数据,仅仅会抛出异常并继续执行。
The SystemRecoverable Exception will contain an encrypted data field which contains the name of the environment variable the Authentication Provider is requesting.
SystemRecoverable Exception包含一个加密的数据字段,其中包含身份验证提供者请求的环境变量的名称。
Spring defines a coherent data access exception class hierarchy (Figure 12) that you can use as a basis for your service- and DAO-layer exceptions.
Spring定义了一致的数据访问异常类层次结构(请参见图12),您可以将其用作服务和DAO 层异常的基础。
Select "title" in the table, and in the property grid change "NullValue" to "(empty)" - that is, treat the title as the empty string whenever no data exists for it, instead of throwing an exception.
在Datatable中选中“title”,在属性栏里将“NullValue”的值更改为“(Empty)”-这样做是为了在没有与“title”对应的数据时,把title做为一个空字符串来对待,以此替换抛出异常。
To gather more data, you can produce a system dump instead of a heap dump on an OutOfMemoryError exception.
为了收集更多的数据,您可以在OutOf MemoryError异常上生成一个系统转储文件,而非堆转储文件。
For example, Spring 2.0 introduced the PersistenceExceptionTranslationPostProcessor to automatically enable data access exception translation for any object carrying the @Repository annotation.
比如,Spring2.0引入了PersistenceExceptionTranslationPostProcessor对任何带有@Repository注解的对象自动激活其数据访问异常转换。
If you failed to enter right data for your Sap business object, you will encounter a business exception from SapBaseException.
如果您无法为Sap业务对象输入正确的数据,则会遇到来自SapBaseException的业务异常。
The framework's support for Hibernate is in compliance with Spring's generic transaction and data access object (DAO) exception hierarchies.
框架对Hibernate的支持符合Spring通用的事务和数据访问对象(DAO)异常层次结构。
Since data flows are not supported in FileNet Business process Manager mode, there is no need for a map, so they are not supported in the process flow — with one exception: the start.
由于FileNet BusinessProcessManager模式中不支持数据流,因此不需要映射,而且在流程流中不支持数据流——但一个例外是:开始位置。
Exception houses exception data to be accessed only by designated JSP "error pages."
Exception include含有只能由指定的JSP“errorpages”访问的异常数据。
If a data logic method in the UserDefinedPushDownMethodsImpl class throws an exception, you can define and create an instance of the same type of exception inside the method.
如果userdefinedpushdownmethodsimpl类中的数据逻辑方法抛出异常,用户可以在方法内部定义并创建一个与异常具有相同类型的实例。
As you'll see later, the exception is that the Google data API does support setting ranges of start dates to limit which events are included in query results.
正如您稍后将看到的,例外情况是Google数据API支持设置开始日期范围以限制查询结果中包括的事件。
Notice that if you put random data here, it will be very likely that SAP will throw a BaseSAP exception due to not correct data.
注意,如果在此处随机放置数据,SAP很可能会因数据不正确而引发BaseSAP异常。
If an attempt to update the data in the entity bean is made, then an exception will be thrown.
在实体bean中尝试更新数据会出现异常。
In this class, you manipulate the server data and return a value to the client (or throw an exception, but let's stay optimistic for the moment).
在这个类中,将操作服务器数据并将值返回给客户机(或者抛出异常,但是此刻先让我们乐观一些认为不会出现这种情况)。
应用推荐