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