开发者

Silverlight | Correct way to do exception handling

开发者 https://www.devze.com 2023-04-09 13:29 出处:网络
Hello All, I would like to knowhow to handle the exception in the Silverlight ? Since it is the code which runs

Hello All,

I would like to know how to handle the exception in the Silverlight ? Since it is the code which runs at Client side , So if some exception happens in the client nor related to web service . So should I show user friendly message and again make a call to the server and store the excep开发者_如何学运维tion details there.

Is it the correct approach ? If not please suggest a better one

Regards,

Phani


The standard seems to be to expose a method in your webservice (such as logEvent(exception ex)) and handle it the same way you would any other .NET error.

The Silverlight Integration Pack for Enterprise Library apparently provides for a lot more support for error logging too, so that may be worth a look, though I haven't used it myself.

0

精彩评论

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