18.2 ERRORS AND ERROR HANDLING: LIFE BEFORE EXCEPTIONS

When someone starts studying programming, he has first brush with syntax errors. Good compiler gives necessary help on how to tackle them. As one has some practice such errors do not bother him. The program gets compiled and starts giving results. Now, new kind of errors trouble arises, the bugs! The bugs are logical errors committed by the programmer. After testing debugging these errors get removed.

It is observed that small programmes after testing and debugging are practically trouble free. But what about large programs? Still many other types of error can occur in a program. When we say exceptions are something like errors, we mean critical run time errors and not syntax or logical errors. ...

Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.