Abstract
EXCEPTIONS are used to signal errors or unexpected conditions in a program. 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 new operator and the dynamic_cast operator and exceptions are used extensively within the standard library.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Ivor Horton
About this chapter
Cite this chapter
Horton, I. (2014). Runtime Errors and Exceptions. In: Beginning C++. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0007-0_15
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0007-0_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0008-7
Online ISBN: 978-1-4842-0007-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books