Summary

Handling errors preemptively, as we saw in this chapter, will make your code robust and when you are using Driver, you usually need to specify how you want to handle errors like this. It is always a good practice to anticipate and act on the occurrence of errors while developing any software. In this chapter, we worked with different operators that allow us to strategize the methodology that we can adopt, depending on the situations and the logic inside the code. In this chapter, we covered how to handle scenarios when our code might encounter an unexpected event. In the next chapter, we will extend this approach of addressing common scenarios using the design patterns.

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

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