I'm from an Android background and when looking up a method in the Android developers reference, the information usually includes what exceptions the method can throw (as well as the parameters the method takes in and its return type). I've had a browse of some classes in the MSDN library and this doesn't seem to be the case here. So how, when developing, can I determine what exceptions a method can throw (if it throws any exceptions)?
A concrete example is the DataContext.SubmitChanges()
method (MSDN link), which can throw an SqlCeException
exception. It seems there's no way of picking up on this unless it's encountered accidentally at run-time.