开发者

Silverlight | Correct way to do exception handling

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜