The developer must specify where and when to roll back a transaction when a checked exception occurs.
开发人员必须指定出现异常时在何处以及何时回滚事务。
One way to handle this is to provide a public static initialize method that throws a checked exception when initialization fails.
处理这个问题的一种方法是提供一个公共静态initialize方法,初始化失败时该方法将抛出一个检查到的异常。
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时,它不仅告诉您它可以抛出一个特定的检查异常,而且还告诉您其他一些事情。
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中调用包装器方法。
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中调用包装器方法。
应用推荐