If the fault is defined simply as an element, then the name of the exception is mapped from the message name, and the package is mapped from the message's namespace (see Listing 5).
如果仅将错误定义为一个元素,则从消息名称映射异常的名称,从消息的命名空间映射数据包(请参见清单5)。
In this example (see also Figure 5), we added a fault handler on the Validate and generate Topology activities to capture all of the faults generated in that activity.
在本实例中(参阅图5),我们在Validate和Generate Topology活动上添加了故障处理程序以捕捉这个活动中产生的所有错误。
Listings 5 and 6 show the code to build fault details for InvalidInputException and InvalidServerDataException, respectively.
清单5和6分别显示了为InvalidInputException和InvalidServerDataException构建故障详细信息的代码。
应用推荐