Exceptions

Exceptions are an error handling mechanism built into some programming languages such as Java, C#, and others. It is a well-known myth that the purpose of exceptions is to separate error handling logic from the core logic in the source code. The truth, however, is quite different.

Exceptions first showed up in programming languages when the do-it-yourself concept became trendy. Software companies realized that their average customer (usually a male) loved to fix things by himself around the house. The problem was that unlike plumbing, electrical equipment, or lawn mowers, where the source of a problem could be relatively easy to find, software products usually supplied no information about what went wrong.

After numerous calls to software support services, complaining about the lack of information when a bug occurs, exceptions where invented to come to the rescue. In order to turn your software product into a do-it-yourself product, all you have to do is to systematically ignore exceptions in your code. The user will be thrilled to receive the exact location where the problem originated, along with a detailed stack trace.

Users especially appreciate this relatively new feature when used in web sites, although most of them lack the permissions required to fix the problem. Researches claim that even in such cases, the information provided to users seems to calm them down and reassure them that everything is under control. In recent customers’ satisfaction-surveys users said they feel they get better value for their money when they read the impressive stack traces generated when an error occurs.

Advertisements

One Response to “Exceptions”

  1. contentified.com Says:

    nice site.

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: