windows phone 7 - MSDN library - how to know what exceptions a method can throw? -


i'm android background , when looking method in android developers reference, information includes exceptions method can throw (as parameters method takes in , return type). i've had browse of classes in msdn library , doesn't seem case here. how, when developing, can determine exceptions method can throw (if throws exceptions)?

a concrete example datacontext.submitchanges() method (msdn link), can throw sqlceexception exception. seems there's no way of picking on unless it's encountered accidentally @ run-time.

.net bit different java in exceptions. there no throws syntax, have declare types of exceptions can thrown method. every method can possibly throw kind of exception. that's why not msdn documentation contains kind of data.

when can't find list of possible exceptions on msdn pages can search/ask on sites stackoverflow (eg. datacontext.submitchanges()) or test app , try generate exception check type is.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -