Part IVHandling Surprises in a Better Way

Better Way

Handling errors is an unavoidable part of programming. Particularly, runtime exceptions are dangerous, and often they appear in the form of NullReferenceException in C#.

Part IV focuses on these topics and provides useful suggestions about how to handle them in a better way. It consists of two chapters, in which we’ll try to find out the answers to some important questions, such as the following:
  • How can we organize exceptions to handle different exceptions in the same way?

  • How can we organize exceptions to handle the same exception in a different way?

  • Why do we need these arrangements?

  • How can you handle null values and avoid repetitive null checks effectively?

Understanding and analyzing them with different case studies will make you a better programmer.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.182.29