In this chapter, we learned three different methods for performing error handling when system programming. The first method was POSIX-style error handling, which involves returning an error code from every function executed and the results of each function being checked to detect an error. The second method involved the use of standard C-style exceptions (that is, set jump), demonstrating how this form of exception-handling solves a lot of issues with POSIX-style error handling, but introduces issues with RAII support and thread safety. The third example discussed the use of C++ exceptions for error handling, and how this form of error handling solves most of the issues discussed in this chapter, with the only disadvantage being an increase in the size of the resulting executable. Finally, this chapter concluded with an example that demonstrated how C++ exceptions outperform...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia