How do I handle SharePoint exceptions?

前端 未结 4 1351
天命终不由人
天命终不由人 2021-01-07 00:24

I`m new to SharePoint, so I guess how do I need to handle exceptions? When I write custom code do I have to check for them or maybe, if they are thrown, they automatically g

4条回答
  •  醉梦人生
    2021-01-07 01:21

    Use this to write to the log: http://msdn.microsoft.com/en-us/library/aa979522.aspx

    Unless you handle your exceptions the application will most likely break. Some errors such as those generated in event receivers will not "break" the application (except for terminating the event receiver). Those, along with all other uncatched errors will end up in the log unless you've changed the settings in central admin.

提交回复
热议问题