O'Reilly logo

Microsoft® Mobile Development Handbook by Peter Foot, Daniel Moth, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Some Exceptions Worthy of Further Mention

Most exceptions are self-describing. For example, it is apparent in an ObjectDisposedException that your code attempted to use an object that has already been disposed of. Other exceptions that are self-explanatory include InvalidArgumentException, InvalidCastException, and NullReferenceException.

Whenever you catch an exception whose type and message are not enough to fully describe the problem, always check whether it exposes any custom properties that can help. A nonexhaustive list of examples of such exceptions includes WebException, SocketException, and SqlCeException. After these three, another set of four exceptions deserve special mention: InvalidOperationException, MissingMethodException, System.Resources. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required