处理一般异常和ESB异常。 [英] Handling general exception and ESB Exception.

查看:365
本文介绍了处理一般异常和ESB异常。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


在我的应用程序中,我试图处理catch块中的异常并将其发送到ESB异常端口。


现在作为另外一个添加我想创建一般异常块,我可以检查特定类型的异常。


例如:  System.InvalidOperationException或FILE IO exception ect。


在这个块中,我将检查异常的类型并创建消息并执行Transform(Map),其中我有ErrorDetails,Error code和ErrorHeader fileds。


如何做到这一点?


我很清楚如何处理ESB异常以及如何为ESB发送异常。


展望未来任何帮助....




谢谢和问候,Nitin。

解决方案

< blockquote>

您好,


创建一个ac#项目,其中FileIO类的CustomException扩展了系统异常。在业务流程服务(自定义构建)中引用dll,并使用它来捕获流程中的异常。这样你就可以处理你需要处理的特定
例外。 


最后在捕获的发送端口内你可以有一个可以推送到特定位置的解析器



问候


K




Hi All,

In my application i am trying to handle the exception in catch block and sending it to ESB Exception port.

Now as one more addition i want to create general exception block where i can check the specific type of exception.

e.g : System.InvalidOperationException or FILE IO exception ect.

In this block i will check the type of exception and will create message and will execute the Transform(Map) in which i have ErrorDetails, Error code and ErrorHeader fileds.

How to do this ?

i am well aware how to handle ESB exception and how to send exception for ESB.

Looking forward for any help....


Thanks and Regards, Nitin.

解决方案

Hi,

Create a c# project where you have CustomException for FileIO class which extends System Exception. Refer the dll Within the orchestration service (custom built), and use it to catch the exception within the process. That way you have handle over the specific exceptions you need to handle. 

Finally within send port of the catch you can have a resolver which can push to specific location

Regards

K



这篇关于处理一般异常和ESB异常。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆