Abstract
Execution of a program can sometimes produce some kind of error. The most common type of runtime errors are division by zero, array indexing out of bounds, variable value out of range, illegal reference, and I/O errors. Well-designed programs should detect errors and take specified actions when errors occur. An exception is an error or an unexpected condition that occurs while the program executes. The mechanism for detecting these errors or conditions and taking some action is known as exception handling.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Springer-Verlag US
About this chapter
Cite this chapter
Garrido, J. (2009). Exceptions. In: Object Oriented Simulation. Springer, Boston, MA. https://doi.org/10.1007/978-1-4419-0516-1_15
Download citation
DOI: https://doi.org/10.1007/978-1-4419-0516-1_15
Published:
Publisher Name: Springer, Boston, MA
Print ISBN: 978-1-4419-0515-4
Online ISBN: 978-1-4419-0516-1
eBook Packages: Computer ScienceComputer Science (R0)