通过引用捕获异常(catch by reference),不会为是否删除异常对象而烦恼;能够避开slicing异常对象;能够捕获标准异常类型;减少异常对象需要被拷贝的数目.
基于1个网页-相关网页
通过注入对代理对象的引用而不是注入实际的EJB远程接口存根,Spring还可以捕获在业务方法调用过程中引发的异常。
Spring can also catch exceptions thrown during business method calls by injecting a reference to a proxy object instead of the actual EJB remote interface stub.
JAX-RPC runtime 捕获用户异常,并且基于通过 wsdl:fault 的消息部分所引用的 schema 定义来将其序列化成 XML 数据。
The JAX-RPC runtime catches a user exception and serializes it to XML data based on the schema definition referenced by the message part of the wsdl:fault.
应用推荐