开发者

WSSF application, catch exception level

开发者 https://www.devze.com 2023-03-16 22:29 出处:网络
At which level in a Web Service Software Factory or any N-Tier application is correct to catch .NET exceptions, and throw custom exceptions (Faults) ? I did it in service implementation and created a

At which level in a Web Service Software Factory or any N-Tier application is correct to catch .NET exceptions, and throw custom exceptions (Faults) ? I did it in service implementation and created a fault contract for 开发者_StackOverflow中文版every service operation, but i'm not shure is well.

Regards,

Sergiu.


That's the best place to catch exception. Usually top layer when control leaves the code is the best place to get the exception. It will contain all inner exception and complete stack trace.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号