Note that if we do want to recover from an unchecked data access exception, we can still.
注意如果我们想从一个未检查的数据访问异常恢复,我们同样可以。
Spring's data access facilities automatically translate data-access exceptions into this exception class hierarchy.
Spring的数据访问功能自动将数据访问异常转换为此异常类层次结构。
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 层异常的基础。
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 your data access code catches an exception, do not ignore it.
如果数据访问代码捕获了一个异常,不要忽略它。
In contrast, if you try to access a single element with an index outside the allowed range, you get an exception.
相反,如果您试图使用允许范围之外的索引来访问单个元素,则会得到一个异常。
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仅提供有关异常条件的非常一般的信息,并且不支持有效地确定特定的问题根源。
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.
开发人员可能会在通过Geronimo的控制台访问了Derby数据后再尝试访问CustomerService实用程序时遇到SQLException错误,反之亦然。
In that case, the second map access would return null and an exception would be thrown.
在这种情况下,第二个映射访问可能会返回null,并抛出一个异常。
Typical join points in AspectJ include method calls, access to class members, and the execution of exception handler blocks.
AspectJ中典型的joinpoint包括方法调用、对类成员的访问以及异常处理程序块的执行。
The framework's support for Hibernate is in compliance with Spring's generic transaction and data access object (DAO) exception hierarchies.
框架对Hibernate的支持符合Spring通用的事务和数据访问对象(DAO)异常层次结构。
It is possible for an exception to occur that forces a branch to the finally clause of the lock statement, releasing the lock and allowing access to any waiting thread to the corrupted resource.
强行进入lock语句的finally子句、释放锁以及允许访问任意等待线程(该线程占用了已被破坏的资源),都有可能引发异常。
If you attempt to access the SQS service without previously registering for the service, you will see an exception with the text "the AWS access Key Id needs a subscription for the service".
如果尝试未注册就访问SQS服务,您将看到“theAWSAccessKeyIdneedsasubscriptionfor theservice”异常。
At this point, all controls have been rendered to the output stream and cannot be changed. During this event any attempt to access the response stream will result in an exception being thrown.
最后一个事件将会发生于每一个控件之上,然后,一直到结束.这时,所有的控件将会输出流并且不能够再被改变.在这个事件中,任何试图访问应答流的方法将都会出现错误.这个事件主要被用来清除善后工作,比如说数据库连接,打开的文件流,事件日志,或者其他的任务等等.
Then, this paper deeply investigated the three difficult problems of the system, such as exception handling, security right controlling and heterogeneous database access.
然后,就系统的三个难点问题——异常处理、安全权限控制和异构数据库访问进行了深入的研究。
If you do not wait on a task that propagates an exception, or access its exception property, the exception is escalated according to the.
如果你不等待一个任务,传播异常,或访问例外属性,例外的是升级根据。
This exception is typically thrown when a field or method is deleted or renamed in one assembly, and the change is not reflected in a second assembly that is trying to access the missing member.
当一个程序集中的某个字段或方法被删除或重命名,而这一更改未反映在另一个尝试访问这个丢失的成员的程序集中时,通常会引发此异常。
This exception typically occurs when the caller does not have access permission to the member.
此异常通常在调用方不具有对成员的访问权限时发生。
This exception is generated when an attempt is made to dynamically access a deleted or renamed field of an assembly that is not referenced by its strong name.
此异常在尝试动态访问未通过其强名称引用的程序集中已删除或重命名的字段时生成。
The exception that is thrown when there is an attempt to access an unloaded class.
尝试访问已卸载的类时所引发的异常。
The exception that is thrown when there is an attempt to access or change a configuration property that does not exist.
尝试存取或变更不存在的组态属性时,所掷回的例外状况。
If any caller in the call stack does not have the demanded permission, a security exception is thrown and access is refused.
如果调用堆栈中的任何调用方没有要求的权限,则会引发安全性异常,并会拒绝访问。
China access to the world trade organization, and the requirements of the relevant policies in China must conform to the provisions, agricultural subsidies are no exception.
中国加入世界贸易组织,这要求中国的相关政策必须符合其规定,农业补贴也不例外。
Ram (random-access memory) problems might bring on the blue screen of death with a message saying Fatal Exception Error .
的RAM (随机存取记忆体)的问题可能带来的对蓝屏死亡的消息说,致命异常错误 。
The exception that is thrown when a directory is not found and the user does not have permission to access the pipeline root path or an add-in path.
找不到目录且使用者没有存取管线根路径或增益集路径的使用权限时,所掷回的例外状况。
The exception that is thrown when attempting to access a row in a table that has no primary key.
尝试访问没有主键的表中的行时引发的异常。
Unlike dictionaries, Counters don't raise an exception if you access an element that doesn't appear. Instead, they return 0
与字典不同的是,当你读取一个不存在的元素的时候,计数器并不会抛出异常。相反的,这时候程序会返回0。
If access is not allowed, an exception is thrown.
如果访问不允许,抛出异常。
If access is not allowed, an exception is thrown.
如果访问不允许,抛出异常。
应用推荐