O'Reilly logo

Microsoft Visual C# 2013 Step by Step by John Sharp

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

Chapter 6. Managing errors and exceptions

After completing this chapter, you will be able to:

You have now seen the core C# statements that you need to know to perform common tasks such as writing methods; declaring variables; using operators to create values; writing if and switch statements to run code selectively; and writing while, for, and do statements to run code repeatedly. However, the previous chapters haven’t considered the possibility (or probability) that things can go wrong.

It is very difficult to ensure that a piece of code always works as expected. Failures can occur for a large number of reasons, many of which ...

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