Abstract
For the programs you write, you definitely care about fixing any errors or problems that are brought to your attention by the language compiler. However, there is a particular type of error that doesn’t happen during compile time; instead, it occurs at runtime. As you progress into more complex application development, you have more chances of getting such runtime errors, known as exceptions. They can occur because the application is trying to open a connection to a nonexistent database, open a file that doesn’t exist, or write to a file that is already open in read-only mode. This Chapter will help you learn more about exceptions and how to handle them when they occur.
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
© 2012 Vidya Vrat Agarwal
About this chapter
Cite this chapter
Agarwal, V.V. (2012). Handling Exceptions. In: Beginning C# 5.0 Databases. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4261-1_11
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4261-1_11
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4260-4
Online ISBN: 978-1-4302-4261-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books