Abstract
Exceptions allow you to signal errors or unexpected conditions in your C++ programs. Using exceptions to signal errors is not mandatory, and you’ll sometimes find it more convenient to handle them in other ways. However, it is important to understand how exceptions work, because they can arise out of the use of standard language features such as the operators new and dynamic_cast, and they’re used extensively within the standard library.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2004 Ivor Horton
About this chapter
Cite this chapter
Horton, I. (2004). Program Errors and Exception Handling. In: Ivor Horton’s Beginning ANSI C++: The Complete Language. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0656-9_17
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0656-9_17
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-59059-227-4
Online ISBN: 978-1-4302-0656-9
eBook Packages: Springer Book Archive