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.
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine