#841 – Exceptions

An exception is something that happens in your application at run-time that is unexpected and which requires special logic in order for the application to continue executing normally.  An exception may or may not be something that you anticipate in your code, but it is an event that is not part of the normal (expected) sequence of events.

Some examples of exceptions that might occur include:

  • Your application tries invoking a method using a reference-typed variable that is set to null
  • Your application is saving a file to disk and runs out of disk space
  • Your application attempts doing some operation for which the current user does not have permissions
  • Your application expects a value input by the user to represent a number and the user enters some text
Advertisements

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

One Response to #841 – Exceptions

  1. Pingback: Dew Drop – May 10, 2013 (#1,545) | Alvin Ashcraft's Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: