Skip to main content

Handling Exceptions

  • Chapter
Beginning C# 5.0 Databases
  • 1809 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics