业务异常允许创建更整洁的流程,将流程的异常情况定义为真实异常。
Business exceptions allow you to create cleaner processes and to define exceptional situations of the process as true exceptions.
通过允许抛出异常,我们已避免了这种杂乱所产生的额外复杂性,并使代码保持更“整洁”。
We've avoided this extra level of complexity and kept our code much cleaner by simply allowing exceptions to be thrown.
异常层次结构将允许EJB客户机既接收特定于业务的异常也接收特定于系统的信息,而不需要编写大量额外代码。
An exception hierarchy will let your EJB clients receive both business-specific exceptions and system-specific information, without requiring you to write a lot of extra code.
应用推荐