The developer must specify where and when to roll back a transaction when a checked exception occurs.
开发人员必须指定出现异常时在何处以及何时回滚事务。
Checked exceptions inherit from exception class and are used to handle recoverable errors such as business error scenarios.
已检查异常继承自exception类并用于处理可恢复性出错诸如业务出错场景。
One way to handle this is to provide a public static initialize method that throws a checked exception when initialization fails.
处理这个问题的一种方法是提供一个公共静态initialize方法,初始化失败时该方法将抛出一个检查到的异常。
Methods in the DAO interface should throw checked exceptions only if the caller can reasonably be expected to handle the exception.
只有在可以合理地预期调用者可以处理异常时,DAO接口中的方法才应该抛出检查过的异常。
The container will not automatically roll back a transaction on a checked exception when you use the Declarative Transaction model.
在使用DeclarativeTransaction 模型时,容器将不会针对检测到的异常自动回滚事务。
This checked exception — the only one defined by the scripting package — indicates that the engine failed to parse or execute the given code.
这个选中的异常(脚本包中定义的惟一一个异常)表示引擎无法解析或执行给定的代码。
When a method throws InterruptedException, it is telling you several things in addition to the fact that it can throw a particular checked exception.
当一个方法抛出InterruptedException时,它不仅告诉您它可以抛出一个特定的检查异常,而且还告诉您其他一些事情。
The answer, surprisingly, is that upon a checked exception (either in the Spring Framework or EJB), the transaction commits any work that has not yet been committed.
答案出乎意料:根据受控异常(不管是在SpringFramework中还是在EJB中),事务会提交它还未提交的所有工作。
Using Listing 13, this means that if a checked exception occurs during the updateAcct method, the trade order is persisted, but the account isn't updated to reflect the trade.
使用清单13,这意味着,如果在执行updateacct方法期间抛出受控异常,就会保存交易订单,但不会更新帐户来反映交易情况。
If you invoke a preexisting function that can throw a checked exception, you should write a wrapper function that catches and handles that exception; then, invoke the wrapper method from XSLT instead.
如果您调用一个可能抛出检查异常的已有函数,您应编写一个包装器函数,捕获并处理此类异常,然后在XSLT中调用包装器方法。
You can throw any kind of exception you like - checked, runtime, or error - as long as the method signature supports it.
可以抛出您需要的任何类型的异常(已检查、运行时或错误),只要方法签名支持它即可。
A checked, user-defined exception.
已检查的、用户定义的异常。
The checked forms check for overflow and generate a runtime exception if the resulting value exceeds the limits of the target type.
执行检查形式将会检查溢出情况,如果结果值超出目标类型的限制,则会生成运行时异常。
The requested capabilities are checked against the actual capabilities of the data source control during the data retrieval operation, and if they do not match an exception is raised.
在资料撷取作业的过程中,所要求的能力会被拿来与资料来源控制项的实际能力比对,如果两者不符,就会引发例外状况。
The requested capabilities are checked against the actual capabilities of the data source control during the data retrieval operation, and if they do not match an exception is raised.
在资料撷取作业的过程中,所要求的能力会被拿来与资料来源控制项的实际能力比对,如果两者不符,就会引发例外状况。
应用推荐